ShaderSetOptions

From The Official Visionaire Studio: Adventure Game Engine Wiki

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 }})