Diffuse shader for OpenGL ES 2.0: Light changes with camera movement (Vuforia on Android)
问题 As a starting point I use the Vuforia (version 4) sample called MultiTargets which tracks a 3d physical "cube" in the camera feed and augments it with yellow grid lines along the cube edges. What I want to achieve is remove the textures and use diffuse lighting on the cube faces instead, by setting my own light position. I want to do this on native Android and I do NOT want to use Unity. It's been a hard journey of several days of work and learning. This is my first time working with OpenGL