-
Notifications
You must be signed in to change notification settings - Fork 103
PostProcessShader
cjcliffe edited this page Oct 15, 2011
·
3 revisions
Create a Shader for use in a PostProcessChain.
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 ofenum.post.REPLACE
,enum.post.BLEND
,enum.post.ADD
, orenum.post.ALPHACUT
(defaultenum.post.REPLACE
) -
outputDivisor
: (default 1)
-