Hey,
The following code worked perfectly in C-Script (I'm not sure if this material is very senseful. just a testmaterial i found - so don't check for correct working, but for crashs on startup)
Code:
MATERIAL* GEdit_targabitmap_shader =
{
effect =
" texture entskin1;
dword mtlskill1;
technique vegetation
{
pass p0
{
texture[0]=<entskin1>;
zwriteenable=true;
alphablendenable=false;
alphatestenable=true;
alpharef=<mtlskill1>;
alphafunc=greater;
cullmode=ccw;// ccw or none
colorarg1[0]=texture;
colorop[0]=modulate2x;
colorarg2[0]=diffuse;
}
}
technique fallback{pass p0{}}
";
}
When I run this code in C-Script everythings works fine. With Lite-C i get the error message:
"Error in effect: GEdit_targabitmap_shader (16): ID3DXEffectCompiler: State 'COLORARG1' accepts only dwords and ids. ID3DXEffectCompiler: There was an error initalizing the compiler".
This is the case with EVERY effect-material, that worked perfectly with C-Script.
I'm a bit irritated why I have to change anything? (as I said, every material with an effect here crashs).
Anyone have an idea?
Thanks,
Timo