Sprite:setShader

Revision as of 23:22, 2 February 2021 by MoKaLux (talk | contribs) (remove language stuff)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2015.06.30
Class: Sprite

Description

Sets a shader for this sprite. If nil is provided, sets default shader for the current object.

Sprite:setShader(shader,programType,programVariant,inherit)

Parameters

shader: (Shader) shader to use for this object
programType: (int) the type of program this shader should replace. Use nil for any optional
programVariant: (int) the variant of program this shader should replace optional
inherit: (boolean) this shader should be used for sub-sprite too optional