Sprite:setShader

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Available since: Gideros 2015.06.30
Class: Sprite

Description

Set shader for this sprite. If nil is provided, sets default shader for 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