Hello again,
sooooo, I found another problem with shade-c.
I can't seem to include materials (probably need to somehow register the material to shade-c first somehow):
MATERIAL* mtl_spectest=
{
effect = "levelDefault.fx";//the default shader from shade-c EVO
}
action I_am_worth_a_shader_to()
{
my.material = mtl_spectest;
set(my, SHADOW);
}
The result without light:
The result with light:
And as a comparison,
The stone block is using the stone.fx shade from shade-c EVO which is manually added via WED, while the gun has it's material (look at code above) added via script.
Without light:
With light:
I have no idea whats going on