Posted By: TrackingKeks
Water shader - 04/05/10 11:27
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?
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?