Dynamic Lighting using Primitive ID: Lessons Learned (WebGL)
Got an idea to implement dynamic lighting per face with the help of gl_PrimitiveID ( SV_PrimitiveID ). I thought it could have benefits. In the end I was faced with severe popping issues. I describe my experience fighting it and lessons learned about lighting with many lights. Made it into a WebGL demo.
Shader Tricks: Retrieving Triangle Location and Edges in Pixel Shader and More (WebGL)
There are cases when we need full triangle info in a pixel shader and I describe the easy and cheap way of getting it (demo included). Also talk about using partial derivatives for peeking into another shader and non perspective interpolation in WebGL.
Conway's Game of Life in One Pixel Shader (WebGL)
Got my little hacky WebGL framework working and wrote a Game of Life shader.
-
It's important to understand barycentric coordinates for graphics programmers. JavaScript demo.
Solid Angle and Perspective (WebGL)
A little about the solid angle and perspective. Also some WebGL.
Introducing DFAA Antialiasing Algorithm
I've come up with a an intresting method for doing antialiasing.