Learn OpenGL ES

Learn how to develop mobile graphics using OpenGL ES 2

Tag: quadratic attenuation

Android Lesson Three: Moving to Per-Fragment Lighting

Welcome to the the third tutorial for Android! In this lesson, we’re going to take everything we learned in lesson two and learn how to apply the same lighting technique on a per-pixel basis. We will be able to see the difference, even when using standard diffuse lighting with simple cubes. Assumptions and prerequisites Each … Continue reading Android Lesson Three: Moving to Per-Fragment Lighting»

Android Lesson Two: Ambient and Diffuse Lighting

Welcome to the second tutorial for Android. In this lesson, we’re going to learn how to implement Lambertian reflectance using shaders, otherwise known as your standard diffuse lighting. 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 … Continue reading Android Lesson Two: Ambient and Diffuse Lighting»