Signed Distance Fields 1.0
float v =

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

return the GLSL code retrieving a float 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 float to retrieve
  • primitivesManager.GetFloat(ptr, "i") + ";"
Author
Hubert-Brierre Pierre

v =