-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Andreas,

On 6/05/2015 13:28, Andreas Schreiber wrote:
> If I pass the following vector from osg code to the shader:
> 
> Code: plane->getOrCreateStateSet()->addUniform(new 
> osg::Uniform("object_position",
> osg::Vec4(1, -0.25, 1,1)));
> 
> This vector is in world space coordinates, correct?

The coordinate system is entirely up to you - tt can be world space, object 
space, or
anything else.  You are responsible for keeping track of what it is.

But since the uniform is not automagically transformed it could be considered 
to be in
world space.

Cheers,
/ulrich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVTgqlAAoJEP8WARS52jMYCMMH/1yv7QHKn/D/D2kt8D82vV+f
pOQWxYiEifRZvTxWG0BEadZekEecn2n58QF93uVMHWtnYa/I2ueq9xb0Au58Uv/k
FF3ROOQgXIcVYZDhdDfjSDoqtnpLL71K49w4lMPiHmsAjsx+g28UcGXCDAeX0TH8
zhIt3OozWAAzhhuwOmn8oXh5hUOkguT67Z+l/U7Foo4zTpzklHiFdMeH6BvbVkp+
CxmjsvyIvi136D6Mi8Hnsllj5Y6qtIH2MbsxFbvD4tOvrSoL5O6K9T7z1iKM0Oty
5d6XdCOIXTE3qqCs99gqK0YstxMVzSSlgc7KOMgixZVqrlkuelCCKK0lvAqWoHc=
=JKkl
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to