shader-lights-1.0.0

shader-lights-1.0.0

Go to Source

See the Code
See it Full Page
See Details

figuring out how to use the scene's lights inside of a shader. For this demo I decided to start with Phong shading and make a few changes to the vertex and fragment shaders. The vertex shader now disturbs the geometry and the fragment shader applied a color

This Pen uses: HTML, CSS, Babel, and Babel