Global Command: shaderSetOptions

From The Official Visionaire Studio: Adventure Game Engine Wiki

Set shader options.

Related functions shaderCompile | shaderUniform


Syntax

shaderSetOptions(value [, id])


Parameters

Parameter Type Description
value table Table of options.
id int Configuration id.


Return values

none


Examples

Example1:

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