Sprite:setShaderConstant

From GiderosMobile
Revision as of 11:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2017.4<br/> === Description === To change the value of a uniform from lua <source lang="lua"> = Sprite:setShaderConstant(uniform named...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2017.4

Description

To change the value of a uniform from lua

= Sprite:setShaderConstant(uniform namedata typemultdata,)

'uniform name: (string) The uniform name to change '
'data type: (int) The type if data to set (one of the Shader.Cxxx constants) '
'mult: (number) number of elements of the given type to set '
'data: (varies) And the actual data to set, either as a table or as multiple arguments '