Canvas:getDepthTexture

Returns the depth buffer used by the Canvas as a Texture. If the Canvas was not created with a readable depth buffer (the depth.readable flag in lovr.graphics.newCanvas), then this function will return nil.

texture = Canvas:getDepthTexture()

Arguments

None

Returns

NameTypeDescription
textureTextureThe depth Texture of the Canvas.

See also