Hello,
I have applied different shaders to models. This worked fine. But after applying the default water shaders I get error messages.
Here is the code:

MATERIAL* mtlWater =
{
effect = "waterMirror.fx";
flags = AUTORELOAD;
}
...
shader_test = ent_create("water.mdl",vector(0,0,1800),NULL);
shader_test.material = mtlWater;

Is there something wrong with the code or should i set something in med?


Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)