Sprite:setEffectConstant

Revision as of 09:03, 18 December 2020 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2021.1<br/> '''<translate>Class</translate>:''' Sprite<br/> === <tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2021.1
Class: Sprite

Description

To change the value of an effect constant from lua

 Sprite:setEffectConstant(effectIndex,uniform name,data type,mult,data)

Parameters

effectIndex: (int) The effect index in the effect stack
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