How to import a vertexNormal vector into a custom fragment shader?
Hamalekk opened this issue · comments
How to import a vertexNormal vector into a custom fragment shader? The wiki says that some g3d variables can be used for custom shaders, but I can't figure out how to add them to the custom shader. help me please
I figured it out, I just put the vertex shader and fragment shader code in one file, marked their boundaries with #ifdef and #endif and specified only this file in newShader()