Shaders in C-Script???

Posted By: Rad_Daddy

Shaders in C-Script??? - 06/12/06 21:42

Are shaders possible written entirely in c-script. If so, could someone point me in the direction of an example/tutorial. Dosent really matter what kind of affect, just would like to see it. Thank you.
Posted By: xXxGuitar511

Re: Shaders in C-Script??? - 06/13/06 01:11

No...


You have to write them in a shader language such as HLSL, through the effect of a material...


ex:
Code:

material mat_this
{
ambient_red = 128;
ambient_green = 128;
ambient_blue = 128;
albedo = 100;
power = 100;
alpha = 100;
effect = "
...
";
}

ACTION MyPlayer
{
my.material = mat_this;
...
}



Sorry I didn't write a shader. I only know how they work, not the language...
Posted By: Rad_Daddy

Re: Shaders in C-Script??? - 06/13/06 01:28

yes, i understand how shaders work as well, or at least how to assign them and good stuff like that. I havent gotten very heavy into HLSL because the quality of my game is not such that I feel I need to waste my time using shaders. However, this is a learning process. I expect my next to be that much better, and hope to use shaders in the near future. Thank you for the answer, xXxguitar.
© 2023 lite-C Forums