I want to add normal map to models in my addon. So I used NormalMap Vertex shader & Pixel shader like it described on example. I have some similar models. On one of models object1.rvmat looks like this:
It works fine.Code:PixelShaderID="NormalMap"; VertexShaderID="NormalMap"; class Stage1 { texture="x\addons\object1_no.paa"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,1}; pos[]={0,0,0}; }; }; class Stage3 { texture=”#(ai,32,128,1)irradiance(8)”; uvSource="none"; };
On the second model object2.rvmat looks like this:
And with it Buldozer tells me "Cannot load texture #(ai,32,128,1)irradiance."Code:PixelShaderID="NormalMap"; VertexShaderID="NormalMap"; class Stage1 { texture="x\addons\object2_no.paa"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,1}; pos[]={0,0,0}; }; }; class Stage3 { texture=”#(ai,32,128,1)irradiance(8)”; uvSource="none"; };
The differences between 2 rvmat's are path to the normal map texture. One of it works. Second and more show error.
What I'm doing wrong?
HOME
Reply With Quote