You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controls are the same as previous tutorials, except:
- Use H to switch between different lighting modes (specular on/off, diffuse on/off)
- Use U/O to tweak the objects' shininess
- Use G to dim the objects' diffuse color.
Light attenuation with a point light example.
Use H to toggle between inverse attenuation and inverse squared attenuation.
Use O/U to tweak the attenuation factor (hold shift for fine tuning).
Fragment lighting with Oren-Nayar shader.
While in fragment lighting mode, press O to toggle Oren-Nayar/Lambert.
Press Up/Down keys to tweak the facet angle.
Per-fragment lighting example.
Same controls as the previous demo.
Additionally, use H to toggle between vertex and fragment lighting, and T to toggle scaling the cylinder.
Vertex Point Lighting tutorial.
Use Space to toggle colored/white cylinder, I/J/K/L to control light position, B to pause light rotation, Y to toggle light token (cube).
Example with Oren-Nayar reflectance model (simplified version):
Press O to toggle between Lambert and Oren-Nayar,
Press B/N to adjust facet slope standard deviation between 0 and 90°.