Login  Register

Re: GLCLInteroperabilityDemo and float4

Posted by paolofuse on Mar 07, 2016; 9:30am
URL: https://forum.jogamp.org/GLCLInteroperabilityDemo-and-float4-tp4036419p4036444.html

The problem was that float3 (and other type3 types) behave as float4 (and other type4 types) for the purposes of size and alignment, as mentioned here:

http://stackoverflow.com/a/16647333

So if I use float3 I have to specify the w component of the vector, like it was a 4 components vector.