Posted By: Reconnoiter
can't tint model red cause of shader - 01/13/15 15:17
Hi there,
I have a model that has 3 textures and one of those is a normal map. For 1 texture I want it to use the normal map through a shader, so I go to MED and check the 'Effect Setup' and 'Extern' boxes and load the right normal map shader.
So far so good. But at a specific moment, I want to tint the model red through the LIGHT flag and vec_set(my.blue, vector(0, 0, 255)); . But this only tinted the part of the model that does not use the normal map shader. How to fix this so that the whole model get tinted red?
I tried setting an other material for the model (e.g. mtl_model or default_shader) but that does not work. Any ideas?
Tnx in advance
I have a model that has 3 textures and one of those is a normal map. For 1 texture I want it to use the normal map through a shader, so I go to MED and check the 'Effect Setup' and 'Extern' boxes and load the right normal map shader.
So far so good. But at a specific moment, I want to tint the model red through the LIGHT flag and vec_set(my.blue, vector(0, 0, 255)); . But this only tinted the part of the model that does not use the normal map shader. How to fix this so that the whole model get tinted red?
I tried setting an other material for the model (e.g. mtl_model or default_shader) but that does not work. Any ideas?
Tnx in advance