ConstaChymic
Member
Hi. I'm wondering what default glsl scripts are used when you are drawing things in 3d and are using lights.
I've been trying to make my own but I cannot for the life of me figure out how to use any of the gl_* variables provided (bar a few such as gl_Fragcoord and gl_Position), as most of my suspected uses of them throw shader compile errors, and there is no good information online about this or in the documentation, apart from the one breadcrumb of MAX_VS_LIGHTS, and if I do find any information, it still throws an error (like with gl_LightSource[0] or gl_FrontColor).
It would be great if in the future we got more documentation of how all the variables that are available in-editor are used.
I've been trying to make my own but I cannot for the life of me figure out how to use any of the gl_* variables provided (bar a few such as gl_Fragcoord and gl_Position), as most of my suspected uses of them throw shader compile errors, and there is no good information online about this or in the documentation, apart from the one breadcrumb of MAX_VS_LIGHTS, and if I do find any information, it still throws an error (like with gl_LightSource[0] or gl_FrontColor).
It would be great if in the future we got more documentation of how all the variables that are available in-editor are used.