Search found 1 match
- Sat Feb 02, 2013 6:40 pm
- Forum: Libraries and Tools
- Topic: Pixel art with GLSL cel shade lighting concept
- Replies: 67
- Views: 138840
Re: Pixel art with GLSL cel shade lighting concept
Note: if you want to use this on rotating objects it won't work without a bit extra. You need to convert the object space normals into world space normals when you do your lighting. This will work, although I'm sure it's not the most efficient method, but I'm new to this GLSL stuff. vec4 n = vec4(no...