Signed Distance Fields 1.0
mat3 m =

return the GLSL code retrieving a mat3 value in the 'FloatBuffer'

return the GLSL code retrieving a mat3 value in the 'FloatBuffer'

Parameters
ptrpointer to the start of the memory block in the 'FloatBuffer' (return value of the function PrimitiveManager::malloc)
indexGLSL expression of the index of the vec3 to retrieve. WARNING asking the i-th matrix will read the value 9*i, 9*i+1 ... 3*i+8
  • primitivesManager.GetMatrix(ptr, "i") + ";"
Author
Hubert-Brierre Pierre

m =