Re: [Opensg-users] QuadTreeTerrain rendering problem

2014-07-29 Thread Carsten Neumann
Hello Christian, On 07/28/2014 03:04 PM, Christian Bar wrote: I managed to make the QuadTreeTerrain rendering work inside my application. I changed the light position calculation inside the vertex shader. Now it is: vec3 LightPosition = gl_LightSource[0].position.xyz -

Re: [Opensg-users] QuadTreeTerrain rendering problem

2014-07-29 Thread Christian Bar
Thanks! In the meanwhile, I've discovered that the original shader actually works with a directional light, but not with a point light. Otherwise, with my modification it works with the point light, but not with the directional one. To make both lights work, I added after the line vec3