Hi. I have a fragment shader applied to a plane geometry creating a box patterns. When the camera is dead on the mesh, the shader creates the correct pattern but when I move the camera off axis, the shader creates colors still aligned to the camera and not the plane normal.
This is a lack of camera/shader knowledge on my part. Would you mind taking a peek at the code and giving me a pointer?
In essence I want to make the shader create colors normal to the mesh and not directed? at the camera.
Greatly appreciated.
Please note the code is adapted from the book of shaders and august.js.
P.S. If you have a category of knowledge I could read about to help me grasp the concept, I’ve love that.