Difference between revisions of "Sprite:setShader"

From GiderosMobile
Line 6: Line 6:
 
  Sprite:setShader(shader)
 
  Sprite:setShader(shader)
 
</source>
 
</source>
'''shader''': (Shader) shader to use for this object ''''''<br/>
+
=== Parameters ===
 +
'''shader''': (Shader) shader to use for this object <br/>

Revision as of 10:45, 23 August 2018

Available since: Gideros 2015.06.30

Description

Set shader for this sprite. If nil is provided, sets default shader for current object

 Sprite:setShader(shader)

Parameters

shader: (Shader) shader to use for this object