Method GL.GLSLUtils.RenderBuffer()->size()


Method size

array(float) size()

Description

Width and height, suitable for texture coordinates, of the buffer. For GL_TEXTURE_2D this is always 1.0 x 1.0. For GL_TEXTURE_RECTANGLE_ARB it's the pixel sizes (as floats)

This function knows about GL_TEXTURE_2D and GL_TEXTURE_RECTANGLE_ARB texture coordinates, but not any other ones.