Skip to content
cjcliffe edited this page Oct 15, 2011 · 3 revisions

CubicVR.PostProcessShader

Create a Shader for use in a PostProcessChain.

Constructor:

PostProcessShader( shaderInfo )

Parameters:

shaderInfo - Object constructor.

Object Constructor:

  • shaderInfo
    • shader_vertex : Vertex shader (required)
    • shader_fragment : Fragment shader (required)
    • enabled : boolean (default true)
    • init([[Shader]]) : Callback
    • onupdate([[Shader]]) : Callback
    • onresize([[Shader]], width, height) : Callback
    • outputMode : One of enum.post.REPLACE, enum.post.BLEND, enum.post.ADD, or enum.post.ALPHACUT (default enum.post.REPLACE)
    • outputDivisor : (default 1)
Clone this wiki locally