"Diffuse + Ambient Lighting" Uniforms
Favorite This Shader

Diffuse + Ambient Lighting

Compose Edit source
Export…

Description

A shader program that renders an object with simple diffuse and ambient lighting. This shader program builds on our previous shader, https://shaderfrog.com/app/view/3152. Since a purely diffuse shader program does not handle ambient lighting, one way is to add an ambient bias to the fragment shader. This adds additional bias to the render, but can make the result more visually appealing. Note that large amounts of ambient lighting are almost universally visually distracting. Created for Computer Graphics 4620, a course offered at the University of Nebraska at Omaha. @bricksphd

Tags

This shader has no tags.

Comments

No comments

Add a comment

Markdown is supported in comments. Learn more.
Please respect our Code of Conduct! Be cool like Snoop Shady Frog.