Mercurial > hg > forks > gldragon
view shader.frag @ 25:2403030a0352
"Finish" implementing multiple lights support in scene files.
If scene defines no lights, a default light will be used.
Light objects will have default values and can redefine only color, position etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Nov 2019 06:47:13 +0200 |
parents | 1404dfcee7b8 |
children | d2839cbfaad8 |
line wrap: on
line source
void main() { gl_FragColor = vec4( gl_FragCoord.x * 0.1, gl_FragCoord.y * 0.001, 0.0, 1.0); };