Global Command: shaderSetOptions

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 10:29, 19 May 2023 by EK (talk | contribs) (Created page with "Set shader options. {| class="ts" |- | style="width:15%" | Related functions | shaderCompile | Global Command: shaderUniform|shaderUniform...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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