fragment-shader
OpenGL Diffuse Lighting Shader Bug?
The Orange book, section 16.2, lists implementing diffuse lighting as: void main() { vec3 N = normalize(gl_NormalMatrix * gl_Normal);[详细]
2022-12-22 16:20 分类:问答Can you have multiple pixel (fragment) shaders in the same program?
I would like to have two pixel shaders; the first doing one thing, and then the next doing something else. Is this possible, or do I have to pack everything into开发者_如何学运维 the one shader?You ca[详细]
2022-12-21 04:24 分类:问答