[Opensg-users] Billboard particle shader

2014-11-04 Thread Victor Haefner
Hi all, the gl_ProjectionMatrix allows me to compute the up and right vector in view coordinates. vec4 right = gl_ProjectionMatrix*vec4(1,0,0); vec4 up = gl_ProjectionMatrix*vec4(0,1,0); I can use those vectors to create a nice quad in the geometry shader. The problem is when using head tracking

Re: [Opensg-users] Billboard particle shader

2014-11-04 Thread Carsten Neumann
Hello Victor, On 11/04/2014 06:17 PM, Victor Haefner wrote: the gl_ProjectionMatrix allows me to compute the up and right vector in view coordinates. vec4 right = gl_ProjectionMatrix*vec4(1,0,0); vec4 up = gl_ProjectionMatrix*vec4(0,1,0); I can use those vectors to create a nice quad

Re: [Opensg-users] Billboard particle shader

2014-11-04 Thread Victor Haefner
Hello Carsten, Thanks a lot! this is exactly what I needed!! :) best regards, Victor On Tue, Nov 4, 2014 at 6:30 PM, Carsten Neumann carsten.p.neum...@gmail.com wrote: Hello Victor, On 11/04/2014 06:17 PM, Victor Haefner wrote: the gl_ProjectionMatrix allows me to compute the up