Without light, we would not even be able to perceive the world or the objects that lie around us, except via the other senses such as sound and touch. What is light?Ī world without lighting would be a dim one, indeed. Before we begin, please review the first lesson as this lesson will build upon the concepts introduced there. Assumptions and prerequisitesĮach lesson in this series builds on the lesson before it.
In OpenGL ES 2, we need to implement our own lighting algorithms, so we will learn how the math works and how we can apply it to our scenes. In this lesson, we’re going to learn how to implement Lambertian reflectance using shaders, otherwise known as your standard diffuse lighting.
Welcome to the second tutorial for Android.