0:00 / 0:00
Quick Lighting in Shadertoy
Blackle Mori
2.1K subscribers • 1 video on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Blackle Mori
- An opinion. It argues one side of a question engineers disagree on.
Intermediate. Assumes working knowledge.
5K views5 years ago1 recommendation
Graphics and audioRenderingCreative coding
Blackle Mori demonstrates simple techniques to quickly add lighting to a 3D model in Shadertoy using only normal vectors.
In this tutorial I showcase a couple of different ways to quickly add lighting to a 3D model when all you have is the normal vector. I also get opinionated about the ambient component of the Phong model. Links: Quick Lighting Tech - shadertoy.com/view/ttGfz1 Explanation of the "erot" function - suricrasia.online/demoscene/functions/ "Computer Color is Broken" i.e. why we take the square root at the end - youtube.com/watch?v=LKnqECcg6Gw