Hi everybody
I 'm currently trying to use the "normal mapping" shader that comes along with darshader. in order to update light values, i do use "element=get object effect(obj,-1)"
"set effect constant vector element "lightpos",i,vector"
to pass the values to the shader.
THe code compiles and runs, but the object only takes the ambient light value... I have two questions then:
-Does anybody know how to use these commands successfully
-If we cycle through values 0 and 7 to access the shader's array, how can light(1) be the one in the statement "light position x(i), etc... where it goes from 0 to 7 and not 1 to 8?
please forgive my approximative english and my silly questions, and help me to get out of this maze...
Bonjour chez vous.
Xp,dbpro 7.4, dual core 3000+, nv gtx260.
Shader working fine in darshader, model correctly textured.
here is the code i use to test shaders:
Hic et nunc