ShaderSetOptions

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 21:28, 30 September 2014 by Vis apiuser (talk) (Created page with "==shaderSetOptions== <div class="command-min-version-info">Available since: <span class="command-min-version">v4.0.2</span></div> <div class="command-doc">Set renderpasses f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

shaderSetOptions

Available since: v4.0.2
Set renderpasses for shader

Lua Syntax:

shaderSetOptions(value [, id])

Arguments

value

' - value - table of renderpasses

id

int - configuration id

Flags

Return Values

None.

Examples

Example 1: set transparent draw style for an object

shaderSetOptions({{shader = 0, comp_dst=1, comp_src=4 }}, 1)Objects.turning_object.ShaderSet = 1

Example 2: set shader options

shaderSetOptions({ renderbuffers=2,{ shader = shaders.num(), source=0, target = 1, clear = 0 },{ shader = shaders.num(), source=0, target = 0, clear = 0 },{ shader = shaders.bnum(), source=1, target = 0, clear = 0, comp_dst=0 }})