How to access/calculate worldNormal in a Vertex and Fragment shader ?
Thanks a lot !
Multiply the normal with the worldmatrix, not the world_view_projection. do this in the vertex shader, and then pass the value down as a linear interpolation value. then you dont need to do it in the pixelshader. |
|||||||
|