Re: [osg-users] Creating a billboard shader for OpenGL ES 2

2013-01-29 Thread Glenn Waldron
Preet, Perhaps the problem is lack of precision in your BillboardRotate uniform (double - float). Maybe you can try a different approach: transform your vertex into View space (or Clip space) and then apply the ModelPosition offsets there. Just an idea. Glenn Waldron / @glennwaldron On Sun,

[osg-users] Creating a billboard shader for OpenGL ES 2

2013-01-20 Thread Preet
Hiya, This is somewhat related to my last thread (maybe I should have just explained the situation from the beginning). I'm trying to create a shader that does billboarding for hundreds of objects at once (where using AutoTransform is too slow). I merge all these objects together to reduce the