how is it possible to just write a vertex shader and have fixed functionality for lighting? is there some special command switch to use or something else i'm not seeing?
thanks
how is it possible to just write a vertex shader and have fixed functionality for lighting? is there some special command switch to use or something else i'm not seeing?
thanks
No, when using Vertex Shaders, you have to do all the rest by yourself.
Jan.
GLIM - Immediate Mode Emulation for GL3
Huu ?
I use only vertex shader (glsl) without fragment shader. And it works very fine.
Fixed-function lighting is per-vertex lighting. And therefore, it is replaced by the vertex program.I use only vertex shader (glsl) without fragment shader. And it works very fine.
right