i have a vertex shader that passes the normal of the vertex to the fragment shader. i can confirm that whatever fragNormal is set do does get passed to the fragment shader. the problem is that all the normals are 0,0,0. here are the relevant parts of code:
Can either of you reproduce this with the unstable branch on raylib-rs/raylib-rs (the repo where development happens more often), which adds a closure-based start_shader_mode?
i have a vertex shader that passes the normal of the vertex to the fragment shader. i can confirm that whatever
fragNormal
is set do does get passed to the fragment shader. the problem is that all the normals are0,0,0
. here are the relevant parts of code:drawing geometry:
vertex shader: