Rendertarget

self:is_hdr

Client

Checks whether this instance uses a 16 bit float color format

Syntax

local result = self:is_hdr()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if this instance was created with hdr, false otherwise

Examples

Check the color format of a rendertarget
local entity = core.rendertarget.create({512, 288}, true, true)

core.engine.print("info", "Is rendertarget HDR:", entity:is_hdr()) -- true

On this page