Difference between revisions of "GLSL TOP"

From TouchDesigner Documentation
Jump to: navigation, search
(cleaning)
Line 1: Line 1:
 
{{Summary
 
{{Summary
|OPclass=glslTOP_Class
+
|opClass=glslTOP_Class
|OPlabel=GLSL
+
|opLabel=GLSL
|OPfamily=TOP
+
|opFamily=TOP
|OPlicense=Non-Commercial
+
|opLicense=Non-Commercial
|OPtype=glsl
+
|opType=glsl
|OPfilter=True
+
|opFilter=True
 
|long=The GLSL TOP renders a GLSL [[shader]] into a TOP image. Use the Info DAT to check for compile errors in your shaders.
 
|long=The GLSL TOP renders a GLSL [[shader]] into a TOP image. Use the Info DAT to check for compile errors in your shaders.
 
 
Line 18: Line 18:
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=
+
|pageSummary=
|Pagename=GLSL
+
|pageName=GLSL
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParMenu
+
{{Parameter|parOrder=0
|Parorder=0
+
|opFamily=TOP
|OPfamily=TOP
+
|parItems=
|Paritems=
 
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 83: Line 82:
 
}}
 
}}
 
 
|Parname=glslversion
+
|parName=glslversion
|OPtype=glsl
+
|opType=glsl
|Parlabel=GLSL Version
+
|parLabel=GLSL Version
|Parsummary=Pick what version of GLSL to compile the shader with.
+
|parSummary=Pick what version of GLSL to compile the shader with.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parorder=1
+
}}
|OPfamily=TOP
+
{{Parameter|parOrder=1
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 107: Line 107:
 
}}
 
}}
 
 
|Parname=mode
+
|parName=mode
|OPtype=glsl
+
|opType=glsl
|Parlabel=Mode
+
|parLabel=Mode
|Parsummary=Choose what type of shader you are writing, vertex/pixel shader, or a compute shader.
+
|parSummary=Choose what type of shader you are writing, vertex/pixel shader, or a compute shader.
}}
+
|parType=
{{ParDatRef
+
|parReadOnly=
|Parsummary=Points to the [[DAT]] holding the Vertex Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=Points to the [[DAT]] holding the Vertex Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.
|OPtype=glsl
+
|opFamily=TOP
|Parorder=2
+
|opType=glsl
|Parlabel=Vertex Shader
+
|parOrder=2
|Parname=vertexdat
+
|parLabel=Vertex Shader
}}
+
|parName=vertexdat
{{ParDatRef
+
|parType=
|Parsummary=Points to the [[DAT]] holding the Pixel Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=
|OPtype=glsl
+
}}
|Parorder=3
+
{{Parameter|parSummary=Points to the [[DAT]] holding the Pixel Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.
|Parlabel=Pixel Shader
+
|opFamily=TOP
|Parname=pixeldat
+
|opType=glsl
}}
+
|parOrder=3
{{ParDatRef
+
|parLabel=Pixel Shader
|Parsummary=Points to the [[DAT]] holding the [[Compute Shader]]. Drag & Drop a DAT here, or manually enter the path to the DAT.
+
|parName=pixeldat
|OPfamily=TOP
+
|parType=
|OPtype=glsl
+
|parReadOnly=
|Parorder=4
+
|parItems=
|Parlabel=Compute Shader
+
}}
|Parname=computedat
+
{{Parameter|parSummary=Points to the [[DAT]] holding the [[Compute Shader]]. Drag & Drop a DAT here, or manually enter the path to the DAT.
}}
+
|opFamily=TOP
{{ParButton
+
|opType=glsl
|Parsummary=When this button is pressed the node will try to pre-fill all it's uniform parameter with uniforms that are declare in the shader. Note that the shader compiler will likely not expose uniforms that are unused.
+
|parOrder=4
|OPfamily=TOP
+
|parLabel=Compute Shader
|OPtype=glsl
+
|parName=computedat
|Parorder=5
+
|parType=
|Parlabel=Load Uniform Names
+
|parReadOnly=
|Parname=loaduniformnames
+
|parItems=
}}
+
}}
{{ParInteger
+
{{Parameter|parSummary=When this button is pressed the node will try to pre-fill all it's uniform parameter with uniforms that are declare in the shader. Note that the shader compiler will likely not expose uniforms that are unused.
|Parorder=6
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|Paritems=
+
|parOrder=5
 +
|parLabel=Load Uniform Names
 +
|parName=loaduniformnames
 +
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=6
 +
|opFamily=TOP
 +
|parItems=
 
{{integeritem
 
{{integeritem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 170: Line 178:
 
}}
 
}}
 
 
|Parname=dispatchsize
+
|parName=dispatchsize
|OPtype=glsl
+
|opType=glsl
|Parlabel=Dispatch Size
+
|parLabel=Dispatch Size
|Parsummary=The dispatch size to use when executing a compute shader.
+
|parSummary=The dispatch size to use when executing a compute shader.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parorder=7
+
}}
|OPfamily=TOP
+
{{Parameter|parOrder=7
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 201: Line 210:
 
}}
 
}}
 
 
|Parname=outputaccess
+
|parName=outputaccess
|OPtype=glsl
+
|opType=glsl
|Parlabel=Output Access
+
|parLabel=Output Access
|Parsummary=Controls how the output textures will be accessed. If the textures will be read from (such as using previous frame's values), then the access should be changed to Read-Write instead of Write Only.
+
|parSummary=Controls how the output textures will be accessed. If the textures will be read from (such as using previous frame's values), then the access should be changed to Read-Write instead of Write Only.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parorder=8
+
}}
|OPfamily=TOP
+
{{Parameter|parOrder=8
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 233: Line 243:
 
}}
 
}}
 
 
|Parname=type
+
|parName=type
|OPtype=glsl
+
|opType=glsl
|Parlabel=Output Type
+
|parLabel=Output Type
|Parsummary=Specify what type of texture to create. When creating  a 3D texture the TOP will render once for every slice of the output. Refer to [[Write a GLSL TOP#3D Textures and 2D Texture Arrays | 3D Textures and 2D Texture Arrays]] for more info.
+
|parSummary=Specify what type of texture to create. When creating  a 3D texture the TOP will render once for every slice of the output. Refer to [[Write a GLSL TOP#3D Textures and 2D Texture Arrays | 3D Textures and 2D Texture Arrays]] for more info.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parorder=9
+
}}
|OPfamily=TOP
+
{{Parameter|parOrder=9
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 257: Line 268:
 
}}
 
}}
 
 
|Parname=depth
+
|parName=depth
|OPtype=glsl
+
|opType=glsl
|Parlabel=Depth
+
|parLabel=Depth
|Parsummary=Set the depth of the 3D texture from the '''Input''' or the '''Custom Depth''' parameter.
+
|parSummary=Set the depth of the 3D texture from the '''Input''' or the '''Custom Depth''' parameter.
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=Manually set the depth of the 3D texture, otherwise it will use the depth of the input.
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=Manually set the depth of the 3D texture, otherwise it will use the depth of the input.
|OPtype=glsl
+
|opFamily=TOP
|Parorder=10
+
|opType=glsl
|Parlabel=Custom Depth
+
|parOrder=10
|Parname=customdepth
+
|parLabel=Custom Depth
}}
+
|parName=customdepth
{{ParMenu
+
|parType=
|Parorder=11
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=
|Paritems=
+
}}
 +
{{Parameter|parOrder=11
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 289: Line 303:
 
}}
 
}}
 
 
|Parname=inputmapping
+
|parName=inputmapping
|OPtype=glsl
+
|opType=glsl
|Parlabel=Input Mapping
+
|parLabel=Input Mapping
|Parsummary=Determines how the node's input(s) are passed into the shader for use when creating a 3D Texture. By default all of the inputs are passed to each slice. When using the '''N inputs per Slice''' mode, the first N inputs are passed to the first slice, the next N inputs are passed the second slice, and so on. When it runs out of inputs it loops back to the first input. N is selected by the parameter '''N Value'''.
+
|parSummary=Determines how the node's input(s) are passed into the shader for use when creating a 3D Texture. By default all of the inputs are passed to each slice. When using the '''N inputs per Slice''' mode, the first N inputs are passed to the first slice, the next N inputs are passed the second slice, and so on. When it runs out of inputs it loops back to the first input. N is selected by the parameter '''N Value'''.
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=Determines how many inputs are passed to the shader per slice when using the '''N inputs per Slice''' mode for '''Input Mapping'''. If for example this is set to 2, then the first 2 inputs will be passed to the first slice, the next 2 inputs will be passed the second slice, and so on. It will loop back to the start of the inputs if it runs out before it reaches the last slice.
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=Determines how many inputs are passed to the shader per slice when using the '''N inputs per Slice''' mode for '''Input Mapping'''. If for example this is set to 2, then the first 2 inputs will be passed to the first slice, the next 2 inputs will be passed the second slice, and so on. It will loop back to the start of the inputs if it runs out before it reaches the last slice.
|OPtype=glsl
+
|opFamily=TOP
|Parorder=12
+
|opType=glsl
|Parlabel=N Value
+
|parOrder=12
|Parname=nval
+
|parLabel=N Value
}}
+
|parName=nval
{{ParMenu
+
|parType=
|Parorder=13
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=
|Paritems=
+
}}
 +
{{Parameter|parOrder=13
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 334: Line 351:
 
|Itemlabel=Mirror
 
|Itemlabel=Mirror
 
}}
 
}}
|Parname=inputextenduv
+
|parName=inputextenduv
|OPtype=glsl
+
|opType=glsl
|Parlabel=Input Extend Mode UV
+
|parLabel=Input Extend Mode UV
|Parsummary=Controls what is returned from your texture sampling functions when the U and V texture coordinates (called S and T in the shader) are outside [0-1] range.
+
|parSummary=Controls what is returned from your texture sampling functions when the U and V texture coordinates (called S and T in the shader) are outside [0-1] range.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parorder=14
+
}}
|OPfamily=TOP
+
{{Parameter|parOrder=14
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 371: Line 389:
 
|Itemlabel=Mirror
 
|Itemlabel=Mirror
 
}}
 
}}
|Parname=inputextendw
+
|parName=inputextendw
|OPtype=glsl
+
|opType=glsl
|Parlabel=Input Extend Mode W
+
|parLabel=Input Extend Mode W
|Parsummary=Controls what is returned from your texture sampling functions when the W texture coordinate (called W in the shader) are outside [0-1] range. Only useful for [[3D Texture]].
+
|parSummary=Controls what is returned from your texture sampling functions when the W texture coordinate (called W in the shader) are outside [0-1] range. Only useful for [[3D Texture]].
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=Any shader you write can output to more than one RGBA buffer at a time. Turn up this value to have more color buffers allocated for you, and refer to [Write_a_GLSL_TOP#Outputting_to_Multiple_Color_Buffers Write a GLSL TOP] for more information on using this feature.
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=Any shader you write can output to more than one RGBA buffer at a time. Turn up this value to have more color buffers allocated for you, and refer to [Write_a_GLSL_TOP#Outputting_to_Multiple_Color_Buffers Write a GLSL TOP] for more information on using this feature.
|OPtype=glsl
+
|opFamily=TOP
|Parorder=15
+
|opType=glsl
|Parlabel=# of Color Buffers
+
|parOrder=15
|Parname=numcolorbufs
+
|parLabel=# of Color Buffers
}}
+
|parName=numcolorbufs
 +
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=These are passed as uniforms into your shader. Depending on how the uniform is declared only some of the values of the 4 available per parameter as passes to the shader. For example, if the uniform is declared as a vec2, then only the first 2 values are passed to the shader, the other 2 are ignored.
+
|pageSummary=These are passed as uniforms into your shader. Depending on how the uniform is declared only some of the values of the 4 available per parameter as passes to the shader. For example, if the uniform is declared as a vec2, then only the first 2 values are passed to the shader, the other 2 are ignored.
|Pagename=Vectors 1
+
|pageName=Vectors 1
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParString
+
{{Parameter|parSummary=The uniform name, as declared in the shader
|Parsummary=The uniform name, as declared in the shader
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Uniform Name
|Parlabel=Uniform Name
+
|parName=uniname0
|Parname=uniname0
+
|parType=
}}
+
|parReadOnly=
{{ParFloat
+
|parItems=}}
|Parorder=1
+
{{Parameter|parOrder=1
|OPfamily=TOP
+
|opFamily=TOP
|Paritems=
+
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 431: Line 452:
 
}}
 
}}
 
 
|Parname=value0
+
|parName=value0
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=The value(s) to give the uniform.
+
|parSummary=The value(s) to give the uniform.
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=2
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=2
|Parname=uniname1
+
|parLabel=Uniform Name
}}
+
|parName=uniname1
{{ParFloat
+
|parType=
|Parorder=3
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=3
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 477: Line 500:
 
}}
 
}}
 
 
|Parname=value1
+
|parName=value1
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=4
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=4
|Parname=uniname2
+
|parLabel=Uniform Name
}}
+
|parName=uniname2
{{ParFloat
+
|parType=
|Parorder=5
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=5
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 523: Line 548:
 
}}
 
}}
 
 
|Parname=value2
+
|parName=value2
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=6
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=6
|Parname=uniname3
+
|parLabel=Uniform Name
}}
+
|parName=uniname3
{{ParFloat
+
|parType=
|Parorder=7
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=7
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 569: Line 596:
 
}}
 
}}
 
 
|Parname=value3
+
|parName=value3
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=8
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=8
|Parname=uniname4
+
|parLabel=Uniform Name
}}
+
|parName=uniname4
{{ParFloat
+
|parType=
|Parorder=9
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=9
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 615: Line 644:
 
}}
 
}}
 
 
|Parname=value4
+
|parName=value4
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=10
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=10
|Parname=uniname5
+
|parLabel=Uniform Name
}}
+
|parName=uniname5
{{ParFloat
+
|parType=
|Parorder=11
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=11
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 661: Line 692:
 
}}
 
}}
 
 
|Parname=value5
+
|parName=value5
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=12
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=12
|Parname=uniname6
+
|parLabel=Uniform Name
}}
+
|parName=uniname6
{{ParFloat
+
|parType=
|Parorder=13
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=13
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 707: Line 740:
 
}}
 
}}
 
 
|Parname=value6
+
|parName=value6
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=14
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=14
|Parname=uniname7
+
|parLabel=Uniform Name
}}
+
|parName=uniname7
{{ParFloat
+
|parType=
|Parorder=15
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=15
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 753: Line 788:
 
}}
 
}}
 
 
|Parname=value7
+
|parName=value7
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=16
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=16
|Parname=uniname8
+
|parLabel=Uniform Name
}}
+
|parName=uniname8
{{ParFloat
+
|parType=
|Parorder=17
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=17
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 799: Line 836:
 
}}
 
}}
 
 
|Parname=value8
+
|parName=value8
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=18
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=18
|Parname=uniname9
+
|parLabel=Uniform Name
}}
+
|parName=uniname9
{{ParFloat
+
|parType=
|Parorder=19
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=19
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 845: Line 884:
 
}}
 
}}
 
 
|Parname=value9
+
|parName=value9
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
 +
|parReadOnly=
 +
}}
 
 
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=
+
|pageSummary=
|Pagename=Vectors 2
+
|pageName=Vectors 2
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParString
+
{{Parameter|parSummary=
|Parsummary=
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Uniform Name
|Parlabel=Uniform Name
+
|parName=uniname10
|Parname=uniname10
+
|parType=
}}
+
|parReadOnly=
{{ParFloat
+
|parItems=}}
|Parorder=1
+
{{Parameter|parOrder=1
|OPfamily=TOP
+
|opFamily=TOP
|Paritems=
+
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 898: Line 939:
 
}}
 
}}
 
 
|Parname=value10
+
|parName=value10
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=2
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=2
|Parname=uniname11
+
|parLabel=Uniform Name
}}
+
|parName=uniname11
{{ParFloat
+
|parType=
|Parorder=3
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=3
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 944: Line 987:
 
}}
 
}}
 
 
|Parname=value11
+
|parName=value11
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=4
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=4
|Parname=uniname12
+
|parLabel=Uniform Name
}}
+
|parName=uniname12
{{ParFloat
+
|parType=
|Parorder=5
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=5
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 990: Line 1,035:
 
}}
 
}}
 
 
|Parname=value12
+
|parName=value12
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=6
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=6
|Parname=uniname13
+
|parLabel=Uniform Name
}}
+
|parName=uniname13
{{ParFloat
+
|parType=
|Parorder=7
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=7
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,036: Line 1,083:
 
}}
 
}}
 
 
|Parname=value13
+
|parName=value13
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=8
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=8
|Parname=uniname14
+
|parLabel=Uniform Name
}}
+
|parName=uniname14
{{ParFloat
+
|parType=
|Parorder=9
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=9
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,082: Line 1,131:
 
}}
 
}}
 
 
|Parname=value14
+
|parName=value14
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=10
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=10
|Parname=uniname15
+
|parLabel=Uniform Name
}}
+
|parName=uniname15
{{ParFloat
+
|parType=
|Parorder=11
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=11
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,128: Line 1,179:
 
}}
 
}}
 
 
|Parname=value15
+
|parName=value15
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=12
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=12
|Parname=uniname16
+
|parLabel=Uniform Name
}}
+
|parName=uniname16
{{ParFloat
+
|parType=
|Parorder=13
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=13
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,174: Line 1,227:
 
}}
 
}}
 
 
|Parname=value16
+
|parName=value16
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=14
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=14
|Parname=uniname17
+
|parLabel=Uniform Name
}}
+
|parName=uniname17
{{ParFloat
+
|parType=
|Parorder=15
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=15
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,220: Line 1,275:
 
}}
 
}}
 
 
|Parname=value17
+
|parName=value17
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=16
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=16
|Parname=uniname18
+
|parLabel=Uniform Name
}}
+
|parName=uniname18
{{ParFloat
+
|parType=
|Parorder=17
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=17
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,266: Line 1,323:
 
}}
 
}}
 
 
|Parname=value18
+
|parName=value18
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=18
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=18
|Parname=uniname19
+
|parLabel=Uniform Name
}}
+
|parName=uniname19
{{ParFloat
+
|parType=
|Parorder=19
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=19
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,312: Line 1,371:
 
}}
 
}}
 
 
|Parname=value19
+
|parName=value19
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
 +
|parReadOnly=
 +
}}
 
 
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=
+
|pageSummary=
|Pagename=Vectors 3
+
|pageName=Vectors 3
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParToggle
+
{{Parameter|parSummary=
|Parsummary=
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Enable These Uniforms
|Parlabel=Enable These Uniforms
+
|parName=enablevectorpage3
|Parname=enablevectorpage3
+
|parType=
}}
+
|parReadOnly=
{{ParString
+
|parItems=}}
|Parsummary=
+
{{Parameter|parSummary=
|OPfamily=TOP
+
|opFamily=TOP
|OPtype=glsl
+
|opType=glsl
|Parorder=1
+
|parOrder=1
|Parlabel=Uniform Name
+
|parLabel=Uniform Name
|Parname=uniname20
+
|parName=uniname20
}}
+
|parType=
{{ParFloat
+
|parReadOnly=
|Parorder=2
+
|parItems=}}
|OPfamily=TOP
+
{{Parameter|parOrder=2
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,373: Line 1,435:
 
}}
 
}}
 
 
|Parname=value20
+
|parName=value20
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=3
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=3
|Parname=uniname21
+
|parLabel=Uniform Name
}}
+
|parName=uniname21
{{ParFloat
+
|parType=
|Parorder=4
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=4
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,419: Line 1,483:
 
}}
 
}}
 
 
|Parname=value21
+
|parName=value21
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=5
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=5
|Parname=uniname22
+
|parLabel=Uniform Name
}}
+
|parName=uniname22
{{ParFloat
+
|parType=
|Parorder=6
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=6
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,465: Line 1,531:
 
}}
 
}}
 
 
|Parname=value22
+
|parName=value22
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=7
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=7
|Parname=uniname23
+
|parLabel=Uniform Name
}}
+
|parName=uniname23
{{ParFloat
+
|parType=
|Parorder=8
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=8
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,511: Line 1,579:
 
}}
 
}}
 
 
|Parname=value23
+
|parName=value23
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=9
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=9
|Parname=uniname24
+
|parLabel=Uniform Name
}}
+
|parName=uniname24
{{ParFloat
+
|parType=
|Parorder=10
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=10
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,557: Line 1,627:
 
}}
 
}}
 
 
|Parname=value24
+
|parName=value24
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=11
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=11
|Parname=uniname25
+
|parLabel=Uniform Name
}}
+
|parName=uniname25
{{ParFloat
+
|parType=
|Parorder=12
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=12
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,603: Line 1,675:
 
}}
 
}}
 
 
|Parname=value25
+
|parName=value25
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=13
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=13
|Parname=uniname26
+
|parLabel=Uniform Name
}}
+
|parName=uniname26
{{ParFloat
+
|parType=
|Parorder=14
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=14
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,649: Line 1,723:
 
}}
 
}}
 
 
|Parname=value26
+
|parName=value26
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=15
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=15
|Parname=uniname27
+
|parLabel=Uniform Name
}}
+
|parName=uniname27
{{ParFloat
+
|parType=
|Parorder=16
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=16
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,695: Line 1,771:
 
}}
 
}}
 
 
|Parname=value27
+
|parName=value27
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=17
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=17
|Parname=uniname28
+
|parLabel=Uniform Name
}}
+
|parName=uniname28
{{ParFloat
+
|parType=
|Parorder=18
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=18
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,741: Line 1,819:
 
}}
 
}}
 
 
|Parname=value28
+
|parName=value28
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=19
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=19
|Parname=uniname29
+
|parLabel=Uniform Name
}}
+
|parName=uniname29
{{ParFloat
+
|parType=
|Parorder=20
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=20
 +
|opFamily=TOP
 +
|parItems=
 
{{floatitem
 
{{floatitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,787: Line 1,867:
 
}}
 
}}
 
 
|Parname=value29
+
|parName=value29
|OPtype=glsl
+
|opType=glsl
|Parlabel=Value
+
|parLabel=Value
|Parsummary=
+
|parSummary=
}}
+
|parType=
 +
|parReadOnly=
 +
}}
 
 
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=CHOP Uniforms allow you to send CHOP channel data into a GLSL shader as an array. Depending on the array type used, the number of values you can send into the shader may be limited. If you are using Uniform Arrays, you can use the Built-In variable <code>int(var('SYS_GFX_GLSL_MAX_UNIFORMS'))</code> to get an idea of how many values you can pass to the shader. Current GPUs are vec4 based for uniform arrays, so the maximum array size is <code>int(var('SYS_GFX_GLSL_MAX_UNIFORMS')) / 4</code>. Other uniforms will take away from this maximum. If you are using Texture Buffers the maximum array size is far bigger, <code>int(var('SYS_GFX_MAX_TEXTURE_BUFFER_SIZE'))</code> will tell you the max for this. The max for texture buffer is per texture buffer, and having multiple texture buffers does not take away from the max for each array.
+
|pageSummary=CHOP Uniforms allow you to send CHOP channel data into a GLSL shader as an array. Depending on the array type used, the number of values you can send into the shader may be limited. If you are using Uniform Arrays, you can use the Built-In variable <code>int(var('SYS_GFX_GLSL_MAX_UNIFORMS'))</code> to get an idea of how many values you can pass to the shader. Current GPUs are vec4 based for uniform arrays, so the maximum array size is <code>int(var('SYS_GFX_GLSL_MAX_UNIFORMS')) / 4</code>. Other uniforms will take away from this maximum. If you are using Texture Buffers the maximum array size is far bigger, <code>int(var('SYS_GFX_MAX_TEXTURE_BUFFER_SIZE'))</code> will tell you the max for this. The max for texture buffer is per texture buffer, and having multiple texture buffers does not take away from the max for each array.
|Pagename=Arrays 1
+
|pageName=Arrays 1
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParString
+
{{Parameter|parSummary=The name of the uniform. You can send up to 4 channels into the GLSL shader in a single uniform. The number of channels is determined by the float/vec2/vec3/vec4 menu to the right of the name. For a CHOP with a single channel declare your uniform as a float, for one with two channels declare your uniform as a vec2, etc. The data is interleaved in the uniform. I.e the .x component is the 1st channel, .y is the 2nd channel, etc.
|Parsummary=The name of the uniform. You can send up to 4 channels into the GLSL shader in a single uniform. The number of channels is determined by the float/vec2/vec3/vec4 menu to the right of the name. For a CHOP with a single channel declare your uniform as a float, for one with two channels declare your uniform as a vec2, etc. The data is interleaved in the uniform. I.e the .x component is the 1st channel, .y is the 2nd channel, etc.
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Uniform Name
|Parlabel=Uniform Name
+
|parName=chopuniname0
|Parname=chopuniname0
+
|parType=
}}
+
|parReadOnly=
{{ParMenu
+
|parItems=}}
|Parorder=1
+
{{Parameter|parOrder=1
|OPfamily=TOP
+
|opFamily=TOP
|Paritems=
+
|parItems=
|Parname=chopunitype0
+
|parName=chopunitype0
|OPtype=glsl
+
|opType=glsl
|Parlabel=Type
+
|parLabel=Type
|Parsummary=The data type of the uniform in the shader.
+
|parSummary=The data type of the uniform in the shader.
}}
+
|parType=
{{ParChopRef
+
|parReadOnly=
|Parsummary=The channels from this CHOP will be sent to the GLSL shader.
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=The channels from this CHOP will be sent to the GLSL shader.
|OPtype=glsl
+
|opFamily=TOP
|Parorder=2
+
|opType=glsl
|Parlabel=CHOP
+
|parOrder=2
|Parname=chop0
+
|parLabel=CHOP
}}
+
|parName=chop0
{{ParMenu
+
|parType=
|Parorder=3
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=3
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,854: Line 1,938:
 
}}
 
}}
 
 
|Parname=choparraytype0
+
|parName=choparraytype0
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=The type of the uniform.
+
|parSummary=The type of the uniform.
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=4
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=4
|Parname=chopuniname1
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname1
{{ParMenu
+
|parType=
|Parorder=5
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=5
|Parname=chopunitype1
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype1
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=6
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop1
+
|opType=glsl
}}
+
|parOrder=6
{{ParMenu
+
|parLabel=CHOP
|Parorder=7
+
|parName=chop1
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=7
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,903: Line 1,991:
 
}}
 
}}
 
 
|Parname=choparraytype1
+
|parName=choparraytype1
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=8
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=8
|Parname=chopuniname2
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname2
{{ParMenu
+
|parType=
|Parorder=9
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=9
|Parname=chopunitype2
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype2
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=10
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop2
+
|opType=glsl
}}
+
|parOrder=10
{{ParMenu
+
|parLabel=CHOP
|Parorder=11
+
|parName=chop2
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=11
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 1,952: Line 2,044:
 
}}
 
}}
 
 
|Parname=choparraytype2
+
|parName=choparraytype2
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=12
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=12
|Parname=chopuniname3
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname3
{{ParMenu
+
|parType=
|Parorder=13
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=13
|Parname=chopunitype3
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype3
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=14
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop3
+
|opType=glsl
}}
+
|parOrder=14
{{ParMenu
+
|parLabel=CHOP
|Parorder=15
+
|parName=chop3
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=15
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,001: Line 2,097:
 
}}
 
}}
 
 
|Parname=choparraytype3
+
|parName=choparraytype3
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=16
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=16
|Parname=chopuniname4
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname4
{{ParMenu
+
|parType=
|Parorder=17
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=17
|Parname=chopunitype4
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype4
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=18
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop4
+
|opType=glsl
}}
+
|parOrder=18
{{ParMenu
+
|parLabel=CHOP
|Parorder=19
+
|parName=chop4
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=19
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,050: Line 2,150:
 
}}
 
}}
 
 
|Parname=choparraytype4
+
|parName=choparraytype4
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
 +
|parReadOnly=
 +
}}
 
 
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=
+
|pageSummary=
|Pagename=Arrays 2
+
|pageName=Arrays 2
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParString
+
{{Parameter|parSummary=
|Parsummary=
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Uniform Name
|Parlabel=Uniform Name
+
|parName=chopuniname5
|Parname=chopuniname5
+
|parType=
}}
+
|parReadOnly=
{{ParMenu
+
|parItems=}}
|Parorder=1
+
{{Parameter|parOrder=1
|OPfamily=TOP
+
|opFamily=TOP
|Paritems=
+
|parItems=
|Parname=chopunitype5
+
|parName=chopunitype5
|OPtype=glsl
+
|opType=glsl
|Parlabel=Type
+
|parLabel=Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParChopRef
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=2
+
|opType=glsl
|Parlabel=CHOP
+
|parOrder=2
|Parname=chop5
+
|parLabel=CHOP
}}
+
|parName=chop5
{{ParMenu
+
|parType=
|Parorder=3
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=3
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,106: Line 2,210:
 
}}
 
}}
 
 
|Parname=choparraytype5
+
|parName=choparraytype5
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=4
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=4
|Parname=chopuniname6
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname6
{{ParMenu
+
|parType=
|Parorder=5
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=5
|Parname=chopunitype6
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype6
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=6
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop6
+
|opType=glsl
}}
+
|parOrder=6
{{ParMenu
+
|parLabel=CHOP
|Parorder=7
+
|parName=chop6
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=7
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,155: Line 2,263:
 
}}
 
}}
 
 
|Parname=choparraytype6
+
|parName=choparraytype6
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=8
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=8
|Parname=chopuniname7
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname7
{{ParMenu
+
|parType=
|Parorder=9
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=9
|Parname=chopunitype7
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype7
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=10
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop7
+
|opType=glsl
}}
+
|parOrder=10
{{ParMenu
+
|parLabel=CHOP
|Parorder=11
+
|parName=chop7
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=11
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,204: Line 2,316:
 
}}
 
}}
 
 
|Parname=choparraytype7
+
|parName=choparraytype7
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=12
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=12
|Parname=chopuniname8
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname8
{{ParMenu
+
|parType=
|Parorder=13
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=13
|Parname=chopunitype8
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype8
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=14
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop8
+
|opType=glsl
}}
+
|parOrder=14
{{ParMenu
+
|parLabel=CHOP
|Parorder=15
+
|parName=chop8
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=15
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,253: Line 2,369:
 
}}
 
}}
 
 
|Parname=choparraytype8
+
|parName=choparraytype8
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=16
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=16
|Parname=chopuniname9
+
|parLabel=Uniform Name
}}
+
|parName=chopuniname9
{{ParMenu
+
|parType=
|Parorder=17
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|Paritems=
+
{{Parameter|parOrder=17
|Parname=chopunitype9
+
|opFamily=TOP
|OPtype=glsl
+
|parItems=
|Parlabel=Type
+
|parName=chopunitype9
|Parsummary=
+
|opType=glsl
}}
+
|parLabel=Type
{{ParChopRef
+
|parSummary=
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
}}
|Parorder=18
+
{{Parameter|parSummary=
|Parlabel=CHOP
+
|opFamily=TOP
|Parname=chop9
+
|opType=glsl
}}
+
|parOrder=18
{{ParMenu
+
|parLabel=CHOP
|Parorder=19
+
|parName=chop9
|OPfamily=TOP
+
|parType=
|Paritems=
+
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=19
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,302: Line 2,422:
 
}}
 
}}
 
 
|Parname=choparraytype9
+
|parName=choparraytype9
|OPtype=glsl
+
|opType=glsl
|Parlabel=Array Type
+
|parLabel=Array Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
 +
|parReadOnly=
 +
}}
 
 
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=
+
|pageSummary=
|Pagename=Matrices
+
|pageName=Matrices
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParString
+
{{Parameter|parSummary=The name of the matrix uniform.
|Parsummary=The name of the matrix uniform.
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Uniform Name
|Parlabel=Uniform Name
+
|parName=matuniname0
|Parname=matuniname0
+
|parType=
}}
+
|parReadOnly=
{{ParChopRef
+
|parItems=}}
|Parsummary=The value to assign the matrix. For valid ways to specify this, see the [[Matrix Parameters]] article.
+
{{Parameter|parSummary=The value to assign the matrix. For valid ways to specify this, see the [[Matrix Parameters]] article.
|OPfamily=TOP
+
|opFamily=TOP
|OPtype=glsl
+
|opType=glsl
|Parorder=1
+
|parOrder=1
|Parlabel=Matrix
+
|parLabel=Matrix
|Parname=matvalue0
+
|parName=matvalue0
}}
+
|parType=
{{ParString
+
|parReadOnly=
|Parsummary=
+
|parItems=}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=2
+
|opType=glsl
|Parlabel=Uniform Name
+
|parOrder=2
|Parname=matuniname1
+
|parLabel=Uniform Name
}}
+
|parName=matuniname1
{{ParChopRef
+
|parType=
|Parsummary=
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|OPtype=glsl
+
{{Parameter|parSummary=
|Parorder=3
+
|opFamily=TOP
|Parlabel=Matrix
+
|opType=glsl
|Parname=matvalue1
+
|parOrder=3
}}
+
|parLabel=Matrix
{{ParString
+
|parName=matvalue1
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
|parItems=}}
|Parorder=4
+
{{Parameter|parSummary=
|Parlabel=Uniform Name
+
|opFamily=TOP
|Parname=matuniname2
+
|opType=glsl
}}
+
|parOrder=4
{{ParChopRef
+
|parLabel=Uniform Name
|Parsummary=
+
|parName=matuniname2
|OPfamily=TOP
+
|parType=
|OPtype=glsl
+
|parReadOnly=
|Parorder=5
+
|parItems=}}
|Parlabel=Matrix
+
{{Parameter|parSummary=
|Parname=matvalue2
+
|opFamily=TOP
}}
+
|opType=glsl
{{ParString
+
|parOrder=5
|Parsummary=
+
|parLabel=Matrix
|OPfamily=TOP
+
|parName=matvalue2
|OPtype=glsl
+
|parType=
|Parorder=6
+
|parReadOnly=
|Parlabel=Uniform Name
+
|parItems=}}
|Parname=matuniname3
+
{{Parameter|parSummary=
}}
+
|opFamily=TOP
{{ParChopRef
+
|opType=glsl
|Parsummary=
+
|parOrder=6
|OPfamily=TOP
+
|parLabel=Uniform Name
|OPtype=glsl
+
|parName=matuniname3
|Parorder=7
+
|parType=
|Parlabel=Matrix
+
|parReadOnly=
|Parname=matvalue3
+
|parItems=}}
}}
+
{{Parameter|parSummary=
{{ParString
+
|opFamily=TOP
|Parsummary=
+
|opType=glsl
|OPfamily=TOP
+
|parOrder=7
|OPtype=glsl
+
|parLabel=Matrix
|Parorder=8
+
|parName=matvalue3
|Parlabel=Uniform Name
+
|parType=
|Parname=matuniname4
+
|parReadOnly=
}}
+
|parItems=}}
{{ParChopRef
+
{{Parameter|parSummary=
|Parsummary=
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=8
|Parorder=9
+
|parLabel=Uniform Name
|Parlabel=Matrix
+
|parName=matuniname4
|Parname=matvalue4
+
|parType=
}}
+
|parReadOnly=
{{ParString
+
|parItems=}}
|Parsummary=
+
{{Parameter|parSummary=
|OPfamily=TOP
+
|opFamily=TOP
|OPtype=glsl
+
|opType=glsl
|Parorder=10
+
|parOrder=9
|Parlabel=Uniform Name
+
|parLabel=Matrix
|Parname=matuniname5
+
|parName=matvalue4
}}
+
|parType=
{{ParChopRef
+
|parReadOnly=
|Parsummary=
+
|parItems=}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=11
+
|opType=glsl
|Parlabel=Matrix
+
|parOrder=10
|Parname=matvalue5
+
|parLabel=Uniform Name
}}
+
|parName=matuniname5
{{ParString
+
|parType=
|Parsummary=
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|OPtype=glsl
+
{{Parameter|parSummary=
|Parorder=12
+
|opFamily=TOP
|Parlabel=Uniform Name
+
|opType=glsl
|Parname=matuniname6
+
|parOrder=11
}}
+
|parLabel=Matrix
{{ParChopRef
+
|parName=matvalue5
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
|parItems=}}
|Parorder=13
+
{{Parameter|parSummary=
|Parlabel=Matrix
+
|opFamily=TOP
|Parname=matvalue6
+
|opType=glsl
}}
+
|parOrder=12
{{ParString
+
|parLabel=Uniform Name
|Parsummary=
+
|parName=matuniname6
|OPfamily=TOP
+
|parType=
|OPtype=glsl
+
|parReadOnly=
|Parorder=14
+
|parItems=}}
|Parlabel=Uniform Name
+
{{Parameter|parSummary=
|Parname=matuniname7
+
|opFamily=TOP
}}
+
|opType=glsl
{{ParChopRef
+
|parOrder=13
|Parsummary=
+
|parLabel=Matrix
|OPfamily=TOP
+
|parName=matvalue6
|OPtype=glsl
+
|parType=
|Parorder=15
+
|parReadOnly=
|Parlabel=Matrix
+
|parItems=}}
|Parname=matvalue7
+
{{Parameter|parSummary=
}}
+
|opFamily=TOP
{{ParString
+
|opType=glsl
|Parsummary=
+
|parOrder=14
|OPfamily=TOP
+
|parLabel=Uniform Name
|OPtype=glsl
+
|parName=matuniname7
|Parorder=16
+
|parType=
|Parlabel=Uniform Name
+
|parReadOnly=
|Parname=matuniname8
+
|parItems=}}
}}
+
{{Parameter|parSummary=
{{ParChopRef
+
|opFamily=TOP
|Parsummary=
+
|opType=glsl
|OPfamily=TOP
+
|parOrder=15
|OPtype=glsl
+
|parLabel=Matrix
|Parorder=17
+
|parName=matvalue7
|Parlabel=Matrix
+
|parType=
|Parname=matvalue8
+
|parReadOnly=
}}
+
|parItems=}}
{{ParString
+
{{Parameter|parSummary=
|Parsummary=
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=16
|Parorder=18
+
|parLabel=Uniform Name
|Parlabel=Uniform Name
+
|parName=matuniname8
|Parname=matuniname9
+
|parType=
}}
+
|parReadOnly=
{{ParChopRef
+
|parItems=}}
|Parsummary=
+
{{Parameter|parSummary=
|OPfamily=TOP
+
|opFamily=TOP
|OPtype=glsl
+
|opType=glsl
|Parorder=19
+
|parOrder=17
|Parlabel=Matrix
+
|parLabel=Matrix
|Parname=matvalue9
+
|parName=matvalue8
}}
+
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parSummary=
 +
|opFamily=TOP
 +
|opType=glsl
 +
|parOrder=18
 +
|parLabel=Uniform Name
 +
|parName=matuniname9
 +
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parSummary=
 +
|opFamily=TOP
 +
|opType=glsl
 +
|parOrder=19
 +
|parLabel=Matrix
 +
|parName=matvalue9
 +
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 
 
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagesummary=
+
|pageSummary=
|Pagename=Atomic Counters
+
|pageName=Atomic Counters
|OPfamily=TOP
+
|opFamily=TOP
 
|items=
 
|items=
{{ParInteger
+
{{Parameter|parSummary=The size allocated for the atomic counter. The size corresponds to the number of atomic counters allowed in that binding, not the size of the allowed offset. Because atomic counters are 4 bytes each it means that the offset in the shader code will be able to be 4 times as large as the number in the size parameter. So, the offset in the code for that binding cannot be larger than (4 * Size) - 4
|Parsummary=The size allocated for the atomic counter. The size corresponds to the number of atomic counters allowed in that binding, not the size of the allowed offset. Because atomic counters are 4 bytes each it means that the offset in the shader code will be able to be 4 times as large as the number in the size parameter. So, the offset in the code for that binding cannot be larger than (4 * Size) - 4
+
|opFamily=TOP
|OPfamily=TOP
+
|opType=glsl
|OPtype=glsl
+
|parOrder=0
|Parorder=0
+
|parLabel=Size
|Parlabel=Size
+
|parName=acsize0
|Parname=acsize0
+
|parType=
}}
+
|parReadOnly=
{{ParInteger
+
|parItems=}}
|Parsummary=The binding location of the counter. This value must be equal to the binding value specified in the shader for the desired atomic counter.
+
{{Parameter|parSummary=The binding location of the counter. This value must be equal to the binding value specified in the shader for the desired atomic counter.
|OPfamily=TOP
+
|opFamily=TOP
|OPtype=glsl
+
|opType=glsl
|Parorder=1
+
|parOrder=1
|Parlabel=Binding
+
|parLabel=Binding
|Parname=acbinding0
+
|parName=acbinding0
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parorder=2
+
|parItems=}}
|OPfamily=TOP
+
{{Parameter|parOrder=2
|Paritems=
+
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,516: Line 2,659:
 
}}
 
}}
 
 
|Parname=acinitval0
+
|parName=acinitval0
|OPtype=glsl
+
|opType=glsl
|Parlabel=Initial Value Type
+
|parLabel=Initial Value Type
|Parsummary=Specifies how the atomic counters receive their initial value, either through a single default value or a CHOP.
+
|parSummary=Specifies how the atomic counters receive their initial value, either through a single default value or a CHOP.
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=Specifies a single value that all atomic counters in this binding will be initialized to.
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=Specifies a single value that all atomic counters in this binding will be initialized to.
|OPtype=glsl
+
|opFamily=TOP
|Parorder=3
+
|opType=glsl
|Parlabel=Initial Value
+
|parOrder=3
|Parname=acsingleval0
+
|parLabel=Initial Value
}}
+
|parName=acsingleval0
{{ParChopRef
+
|parType=
|Parsummary=A reference to the CHOP that will determine the initial values of the atomic counters in this binding. The CHOP will be spanned in track order, so the values from the first track will be read in order first, then the next track (if there is one) and so on. If there are more initial values to fill than there are values in the CHOP then they will all be set to 0. Atomic counters will be initialized from low to high offsets.
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|OPtype=glsl
+
{{Parameter|parSummary=A reference to the CHOP that will determine the initial values of the atomic counters in this binding. The CHOP will be spanned in track order, so the values from the first track will be read in order first, then the next track (if there is one) and so on. If there are more initial values to fill than there are values in the CHOP then they will all be set to 0. Atomic counters will be initialized from low to high offsets.
|Parorder=4
+
|opFamily=TOP
|Parlabel=Initial Values CHOP
+
|opType=glsl
|Parname=acchopval0
+
|parOrder=4
}}
+
|parLabel=Initial Values CHOP
{{ParInteger
+
|parName=acchopval0
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
|parItems=}}
|Parorder=5
+
{{Parameter|parSummary=
|Parlabel=Size
+
|opFamily=TOP
|Parname=acsize1
+
|opType=glsl
}}
+
|parOrder=5
{{ParInteger
+
|parLabel=Size
|Parsummary=
+
|parName=acsize1
|OPfamily=TOP
+
|parType=
|OPtype=glsl
+
|parReadOnly=
|Parorder=6
+
|parItems=}}
|Parlabel=Binding
+
{{Parameter|parSummary=
|Parname=acbinding1
+
|opFamily=TOP
}}
+
|opType=glsl
{{ParMenu
+
|parOrder=6
|Parorder=7
+
|parLabel=Binding
|OPfamily=TOP
+
|parName=acbinding1
|Paritems=
+
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=7
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,572: Line 2,720:
 
}}
 
}}
 
 
|Parname=acinitval1
+
|parName=acinitval1
|OPtype=glsl
+
|opType=glsl
|Parlabel=Initial Value Type
+
|parLabel=Initial Value Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=8
+
|opType=glsl
|Parlabel=Initial Value
+
|parOrder=8
|Parname=acsingleval1
+
|parLabel=Initial Value
}}
+
|parName=acsingleval1
{{ParChopRef
+
|parType=
|Parsummary=
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|OPtype=glsl
+
{{Parameter|parSummary=
|Parorder=9
+
|opFamily=TOP
|Parlabel=Initial Values CHOP
+
|opType=glsl
|Parname=acchopval1
+
|parOrder=9
}}
+
|parLabel=Initial Values CHOP
{{ParInteger
+
|parName=acchopval1
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
|parItems=}}
|Parorder=10
+
{{Parameter|parSummary=
|Parlabel=Size
+
|opFamily=TOP
|Parname=acsize2
+
|opType=glsl
}}
+
|parOrder=10
{{ParInteger
+
|parLabel=Size
|Parsummary=
+
|parName=acsize2
|OPfamily=TOP
+
|parType=
|OPtype=glsl
+
|parReadOnly=
|Parorder=11
+
|parItems=}}
|Parlabel=Binding
+
{{Parameter|parSummary=
|Parname=acbinding2
+
|opFamily=TOP
}}
+
|opType=glsl
{{ParMenu
+
|parOrder=11
|Parorder=12
+
|parLabel=Binding
|OPfamily=TOP
+
|parName=acbinding2
|Paritems=
+
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=12
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,628: Line 2,781:
 
}}
 
}}
 
 
|Parname=acinitval2
+
|parName=acinitval2
|OPtype=glsl
+
|opType=glsl
|Parlabel=Initial Value Type
+
|parLabel=Initial Value Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=13
+
|opType=glsl
|Parlabel=Initial Value
+
|parOrder=13
|Parname=acsingleval2
+
|parLabel=Initial Value
}}
+
|parName=acsingleval2
{{ParChopRef
+
|parType=
|Parsummary=
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|OPtype=glsl
+
{{Parameter|parSummary=
|Parorder=14
+
|opFamily=TOP
|Parlabel=Initial Values CHOP
+
|opType=glsl
|Parname=acchopval2
+
|parOrder=14
}}
+
|parLabel=Initial Values CHOP
{{ParInteger
+
|parName=acchopval2
|Parsummary=
+
|parType=
|OPfamily=TOP
+
|parReadOnly=
|OPtype=glsl
+
|parItems=}}
|Parorder=15
+
{{Parameter|parSummary=
|Parlabel=Size
+
|opFamily=TOP
|Parname=acsize3
+
|opType=glsl
}}
+
|parOrder=15
{{ParInteger
+
|parLabel=Size
|Parsummary=
+
|parName=acsize3
|OPfamily=TOP
+
|parType=
|OPtype=glsl
+
|parReadOnly=
|Parorder=16
+
|parItems=}}
|Parlabel=Binding
+
{{Parameter|parSummary=
|Parname=acbinding3
+
|opFamily=TOP
}}
+
|opType=glsl
{{ParMenu
+
|parOrder=16
|Parorder=17
+
|parLabel=Binding
|OPfamily=TOP
+
|parName=acbinding3
|Paritems=
+
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 +
{{Parameter|parOrder=17
 +
|opFamily=TOP
 +
|parItems=
 
{{Menuitem
 
{{Menuitem
 
|OPfamily=TOP
 
|OPfamily=TOP
Line 2,684: Line 2,842:
 
}}
 
}}
 
 
|Parname=acinitval3
+
|parName=acinitval3
|OPtype=glsl
+
|opType=glsl
|Parlabel=Initial Value Type
+
|parLabel=Initial Value Type
|Parsummary=
+
|parSummary=
}}
+
|parType=
{{ParInteger
+
|parReadOnly=
|Parsummary=
+
}}
|OPfamily=TOP
+
{{Parameter|parSummary=
|OPtype=glsl
+
|opFamily=TOP
|Parorder=18
+
|opType=glsl
|Parlabel=Initial Value
+
|parOrder=18
|Parname=acsingleval3
+
|parLabel=Initial Value
}}
+
|parName=acsingleval3
{{ParChopRef
+
|parType=
|Parsummary=
+
|parReadOnly=
|OPfamily=TOP
+
|parItems=}}
|OPtype=glsl
+
{{Parameter|parSummary=
|Parorder=19
+
|opFamily=TOP
|Parlabel=Initial Values CHOP
+
|opType=glsl
|Parname=acchopval3
+
|parOrder=19
}}
+
|parLabel=Initial Values CHOP
 +
|parName=acchopval3
 +
|parType=
 +
|parReadOnly=
 +
|parItems=}}
 
 
 
}}
 
}}
 
{{:TOP Filter Common Page
 
{{:TOP Filter Common Page
 
}}
 
}}
{{History
+
{{InputsPage
 +
|opFamily=TOP
 +
|opInputs={{OPInput
 +
|opFamily=TOP
 +
|inputIndex=0
 +
|inputName=
 +
|inputSummary=
 +
}}<!---->{{OPInput
 +
|opFamily=TOP
 +
|inputIndex=1
 +
|inputName=
 +
|inputSummary=
 +
}}<!---->{{OPInput
 +
|opFamily=TOP
 +
|inputIndex=2
 +
|inputName=
 +
|inputSummary=
 +
}}
 +
}}{{History
 
}}
 
}}
 
{{TOPNavBox
 
{{TOPNavBox
|OPfamily=TOP
+
|opFamily=TOP
 
}}
 
}}
 
{{#invoke:Category
 
{{#invoke:Category
 
|list|TOPs}}
 
|list|TOPs}}

Revision as of 16:33, 24 January 2019

Summary
[edit]

The GLSL TOP renders a GLSL shader into a TOP image. Use the Info DAT to check for compile errors in your shaders.

The GLSL TOP can act as a pixel shader, or the more general and complex Compute Shader. Caveat: Compute Shaders need GLSL 4.30 or later.

Refer to the Write a GLSL TOP article for more info on using this TOP.

The GLSL TOP has one docked compute shader as well as a normal GLSL shader. Change he Mode to Compute Shader. it will use the glsl1_compute DAT.

See the GLSL Category for more information, and Compute Shader.

PythonIcon.pngglslTOP_Class


Parameters - GLSL Page

GLSL Version glslversion - - Pick what version of GLSL to compile the shader with.

Mode mode - - Choose what type of shader you are writing, vertex/pixel shader, or a compute shader.

Vertex Shader vertexdat - Points to the DAT holding the Vertex Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.  

Pixel Shader pixeldat - Points to the DAT holding the Pixel Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.  

Compute Shader computedat - Points to the DAT holding the Compute Shader. Drag & Drop a DAT here, or manually enter the path to the DAT.  

Load Uniform Names loaduniformnames - When this button is pressed the node will try to pre-fill all it's uniform parameter with uniforms that are declare in the shader. Note that the shader compiler will likely not expose uniforms that are unused.  

Dispatch Size dispatchsize - - The dispatch size to use when executing a compute shader.

Output Access outputaccess - - Controls how the output textures will be accessed. If the textures will be read from (such as using previous frame's values), then the access should be changed to Read-Write instead of Write Only.

Output Type type - - Specify what type of texture to create. When creating a 3D texture the TOP will render once for every slice of the output. Refer to 3D Textures and 2D Texture Arrays for more info.

Depth depth - - Set the depth of the 3D texture from the Input or the Custom Depth parameter.

Custom Depth customdepth - Manually set the depth of the 3D texture, otherwise it will use the depth of the input.  

Input Mapping inputmapping - - Determines how the node's input(s) are passed into the shader for use when creating a 3D Texture. By default all of the inputs are passed to each slice. When using the N inputs per Slice mode, the first N inputs are passed to the first slice, the next N inputs are passed the second slice, and so on. When it runs out of inputs it loops back to the first input. N is selected by the parameter N Value.

N Value nval - Determines how many inputs are passed to the shader per slice when using the N inputs per Slice mode for Input Mapping. If for example this is set to 2, then the first 2 inputs will be passed to the first slice, the next 2 inputs will be passed the second slice, and so on. It will loop back to the start of the inputs if it runs out before it reaches the last slice.  

Input Extend Mode UV inputextenduv - - Controls what is returned from your texture sampling functions when the U and V texture coordinates (called S and T in the shader) are outside [0-1] range.

Input Extend Mode W inputextendw - - Controls what is returned from your texture sampling functions when the W texture coordinate (called W in the shader) are outside [0-1] range. Only useful for 3D Texture.

# of Color Buffers numcolorbufs - Any shader you write can output to more than one RGBA buffer at a time. Turn up this value to have more color buffers allocated for you, and refer to [Write_a_GLSL_TOP#Outputting_to_Multiple_Color_Buffers Write a GLSL TOP] for more information on using this feature.  


Parameters - Vectors 1 Page

These are passed as uniforms into your shader. Depending on how the uniform is declared only some of the values of the 4 available per parameter as passes to the shader. For example, if the uniform is declared as a vec2, then only the first 2 values are passed to the shader, the other 2 are ignored.

Uniform Name uniname0 - The uniform name, as declared in the shader  

Value value0 - - The value(s) to give the uniform.

Uniform Name uniname1 -  

Value value1 - -

Uniform Name uniname2 -  

Value value2 - -

Uniform Name uniname3 -  

Value value3 - -

Uniform Name uniname4 -  

Value value4 - -

Uniform Name uniname5 -  

Value value5 - -

Uniform Name uniname6 -  

Value value6 - -

Uniform Name uniname7 -  

Value value7 - -

Uniform Name uniname8 -  

Value value8 - -

Uniform Name uniname9 -  

Value value9 - -


Parameters - Vectors 2 Page

Uniform Name uniname10 -  

Value value10 - -

Uniform Name uniname11 -  

Value value11 - -

Uniform Name uniname12 -  

Value value12 - -

Uniform Name uniname13 -  

Value value13 - -

Uniform Name uniname14 -  

Value value14 - -

Uniform Name uniname15 -  

Value value15 - -

Uniform Name uniname16 -  

Value value16 - -

Uniform Name uniname17 -  

Value value17 - -

Uniform Name uniname18 -  

Value value18 - -

Uniform Name uniname19 -  

Value value19 - -


Parameters - Vectors 3 Page

Enable These Uniforms enablevectorpage3 -  

Uniform Name uniname20 -  

Value value20 - -

Uniform Name uniname21 -  

Value value21 - -

Uniform Name uniname22 -  

Value value22 - -

Uniform Name uniname23 -  

Value value23 - -

Uniform Name uniname24 -  

Value value24 - -

Uniform Name uniname25 -  

Value value25 - -

Uniform Name uniname26 -  

Value value26 - -

Uniform Name uniname27 -  

Value value27 - -

Uniform Name uniname28 -  

Value value28 - -

Uniform Name uniname29 -  

Value value29 - -


Parameters - Arrays 1 Page

CHOP Uniforms allow you to send CHOP channel data into a GLSL shader as an array. Depending on the array type used, the number of values you can send into the shader may be limited. If you are using Uniform Arrays, you can use the Built-In variable int(var('SYS_GFX_GLSL_MAX_UNIFORMS')) to get an idea of how many values you can pass to the shader. Current GPUs are vec4 based for uniform arrays, so the maximum array size is int(var('SYS_GFX_GLSL_MAX_UNIFORMS')) / 4. Other uniforms will take away from this maximum. If you are using Texture Buffers the maximum array size is far bigger, int(var('SYS_GFX_MAX_TEXTURE_BUFFER_SIZE')) will tell you the max for this. The max for texture buffer is per texture buffer, and having multiple texture buffers does not take away from the max for each array.

Uniform Name chopuniname0 - The name of the uniform. You can send up to 4 channels into the GLSL shader in a single uniform. The number of channels is determined by the float/vec2/vec3/vec4 menu to the right of the name. For a CHOP with a single channel declare your uniform as a float, for one with two channels declare your uniform as a vec2, etc. The data is interleaved in the uniform. I.e the .x component is the 1st channel, .y is the 2nd channel, etc.  

Type chopunitype0 - The data type of the uniform in the shader.  

CHOP chop0 - The channels from this CHOP will be sent to the GLSL shader.  

Array Type choparraytype0 - - The type of the uniform.

Uniform Name chopuniname1 -  

Type chopunitype1 -  

CHOP chop1 -  

Array Type choparraytype1 - -

Uniform Name chopuniname2 -  

Type chopunitype2 -  

CHOP chop2 -  

Array Type choparraytype2 - -

Uniform Name chopuniname3 -  

Type chopunitype3 -  

CHOP chop3 -  

Array Type choparraytype3 - -

Uniform Name chopuniname4 -  

Type chopunitype4 -  

CHOP chop4 -  

Array Type choparraytype4 - -


Parameters - Arrays 2 Page

Uniform Name chopuniname5 -  

Type chopunitype5 -  

CHOP chop5 -  

Array Type choparraytype5 - -

Uniform Name chopuniname6 -  

Type chopunitype6 -  

CHOP chop6 -  

Array Type choparraytype6 - -

Uniform Name chopuniname7 -  

Type chopunitype7 -  

CHOP chop7 -  

Array Type choparraytype7 - -

Uniform Name chopuniname8 -  

Type chopunitype8 -  

CHOP chop8 -  

Array Type choparraytype8 - -

Uniform Name chopuniname9 -  

Type chopunitype9 -  

CHOP chop9 -  

Array Type choparraytype9 - -


Parameters - Matrices Page

Uniform Name matuniname0 - The name of the matrix uniform.  

Matrix matvalue0 - The value to assign the matrix. For valid ways to specify this, see the Matrix Parameters article.  

Uniform Name matuniname1 -  

Matrix matvalue1 -  

Uniform Name matuniname2 -  

Matrix matvalue2 -  

Uniform Name matuniname3 -  

Matrix matvalue3 -  

Uniform Name matuniname4 -  

Matrix matvalue4 -  

Uniform Name matuniname5 -  

Matrix matvalue5 -  

Uniform Name matuniname6 -  

Matrix matvalue6 -  

Uniform Name matuniname7 -  

Matrix matvalue7 -  

Uniform Name matuniname8 -  

Matrix matvalue8 -  

Uniform Name matuniname9 -  

Matrix matvalue9 -  


Parameters - Atomic Counters Page

Size acsize0 - The size allocated for the atomic counter. The size corresponds to the number of atomic counters allowed in that binding, not the size of the allowed offset. Because atomic counters are 4 bytes each it means that the offset in the shader code will be able to be 4 times as large as the number in the size parameter. So, the offset in the code for that binding cannot be larger than (4 * Size) - 4  

Binding acbinding0 - The binding location of the counter. This value must be equal to the binding value specified in the shader for the desired atomic counter.  

Initial Value Type acinitval0 - - Specifies how the atomic counters receive their initial value, either through a single default value or a CHOP.

Initial Value acsingleval0 - Specifies a single value that all atomic counters in this binding will be initialized to.  

Initial Values CHOP acchopval0 - A reference to the CHOP that will determine the initial values of the atomic counters in this binding. The CHOP will be spanned in track order, so the values from the first track will be read in order first, then the next track (if there is one) and so on. If there are more initial values to fill than there are values in the CHOP then they will all be set to 0. Atomic counters will be initialized from low to high offsets.  

Size acsize1 -  

Binding acbinding1 -  

Initial Value Type acinitval1 - -

Initial Value acsingleval1 -  

Initial Values CHOP acchopval1 -  

Size acsize2 -  

Binding acbinding2 -  

Initial Value Type acinitval2 - -

Initial Value acsingleval2 -  

Initial Values CHOP acchopval2 -  

Size acsize3 -  

Binding acbinding3 -  

Initial Value Type acinitval3 - -

Initial Value acsingleval3 -  

Initial Values CHOP acchopval3 -  


Parameters - Common Page

Output Resolution outputresolution - - quickly change the resolution of the TOP's data.

  • Use Input useinput - Uses the input's resolution.
  • Eighth eighth - Multiply the input's resolution by that amount.
  • Quarter quarter - Multiply the input's resolution by that amount.
  • Half half - Multiply the input's resolution by that amount.
  • 2X 2x - Multiply the input's resolution by that amount.
  • 4X 4x - Multiply the input's resolution by that amount.
  • 8X 8x - Multiply the input's resolution by that amount.
  • Fit Resolution fit - Multiply the input's resolution by that amount.
  • Limit Resolution limit - Multiply the input's resolution by that amount.
  • Custom Resolution custom - Enables the Resolution parameter below, giving direct control over width and height.

Resolution resolution - - Enabled only when the Resolution parameter is set to Custom Resolution. Some Generators like Constant and Ramp do not use inputs and only use this field to determine their size. The drop down menu on the right provides some commonly used resolutions.

  • W resolutionw -
  • H resolutionh -

Resolution Menu resmenu - A drop-down menu with some commonly used resolutions.  

Use Global Res Multiplier resmult - Uses the Global Resolution Multiplier found in Edit>Preferences>TOPs. This multiplies all the TOPs resolutions by the set amount. This is handy when working on computers with different hardware specifications. If a project is designed on a desktop workstation with lots of graphics memory, a user on a laptop with only 64MB VRAM can set the Global Resolution Multiplier to a value of half or quarter so it runs at an acceptable speed. By checking this checkbox on, this TOP is affected by the global multiplier.  

Output Aspect outputaspect - - Sets the image aspect ratio allowing any textures to be viewed in any size. Watch for unexpected results when compositing TOPs with different aspect ratios. (You can define images with non-square pixels using xres, yres, aspectx, aspecty where xres/yres != aspectx/aspecty.)

  • Use Input useinput - Uses the input's aspect ratio.
  • Resolution resolution - Uses the aspect of the image's defined resolution (ie 512x256 would be 2:1), whereby each pixel is square.
  • Custom Aspect custom - Lets you explicitly define a custom aspect ratio in the Aspect parameter below.

Aspect aspect - - Use when Output Aspect parameter is set to Custom Aspect.

  • Aspect1 aspect1 -
  • Aspect2 aspect2 -

Aspect Menu armenu - A drop-down menu with some commonly used aspect ratios.  

Input Smoothness inputfiltertype - - This controls pixel filtering on the input image of the TOP.

  • Nearest Pixel nearest - Uses nearest pixel or accurate image representation. Images will look jaggy when viewing at any zoom level other than Native Resolution.
  • Interpolate Pixels linear - Uses linear filtering between pixels. This is how you get TOP images in viewers to look good at various zoom levels, especially useful when using any Fill Viewer setting other than Native Resolution.
  • Mipmap Pixels mipmap - Uses mipmap filtering when scaling images. This can be used to reduce artifacts and sparkling in moving/scaling images that have lots of detail.

Fill Viewer fillmode - - Determine how the TOP image is displayed in the viewer. NOTE:To get an understanding of how TOPs work with images, you will want to set this to Native Resolution as you lay down TOPs when starting out. This will let you see what is actually happening without any automatic viewer resizing.

  • Use Input useinput - Uses the same Fill Viewer settings as it's input.
  • Fill fill - Stretches the image to fit the edges of the viewer.
  • Fit Horizontal width - Stretches image to fit viewer horizontally.
  • Fit Vertical height - Stretches image to fit viewer vertically.
  • Fit Best best - Stretches or squashes image so no part of image is cropped.
  • Fit Outside outside - Stretches or squashes image so image fills viewer while constraining it's proportions. This often leads to part of image getting cropped by viewer.
  • Native Resolution nativeres - Displays the native resolution of the image in the viewer.

Viewer Smoothness filtertype - - This controls pixel filtering in the viewers.

  • Nearest Pixel nearest - Uses nearest pixel or accurate image representation. Images will look jaggy when viewing at any zoom level other than Native Resolution.
  • Interpolate Pixels linear - Uses linear filtering between pixels. Use this to get TOP images in viewers to look good at various zoom levels, especially useful when using any Fill Viewer setting other than Native Resolution.
  • Mipmap Pixels mipmap - Uses mipmap filtering when scaling images. This can be used to reduce artifacts and sparkling in moving/scaling images that have lots of detail.

Passes npasses - Duplicates the operation of the TOP the specified number of times. Making this larger than 1 is essentially the same as taking the output from each pass, and passing it into the first input of the node and repeating the process. Other inputs and parameters remain the same for each pass.  

Channel Mask chanmask - Allows you to choose which channels (R, G, B, or A) the TOP will operate on. All channels are selected by default.  

Pixel Format format - - Format used to store data for each channel in the image (ie. R, G, B, and A). Refer to Pixel Formats for more information.

  • Use Input useinput - Uses the input's pixel format.
  • 8-bit fixed (RGBA) rgba8fixed - Uses 8-bit integer values for each channel.
  • sRGB 8-bit fixed (RGBA) srgba8fixed - Uses 8-bit integer values for each channel and stores color in sRGB colorspace.
  • 16-bit float (RGBA) rgba16float - Uses 16-bits per color channel, 64-bits per pixel.
  • 32-bit float (RGBA) rgba32float - Uses 32-bits per color channel, 128-bits per pixels.
  • 10-bit RGB, 2-bit Alpha, fixed (RGBA) rgb10a2fixed - Uses 10-bits per color channel and 2-bits for alpha, 32-bits total per pixel.
  • 16-bit fixed (RGBA) rgba16fixed - Uses 16-bits per color channel, 64-bits total per pixel.
  • 11-bit float (RGB), Positive Values Only rgba11float - A RGB floating point format that has 11 bits for the Red and Green channels, and 10-bits for the Blue Channel, 32-bits total per pixel (therefore the same memory usage as 8-bit RGBA). The Alpha channel in this format will always be 1. Values can go above one, but can't be negative. ie. the range is [0, infinite).
  • 16-bit float (RGB) rgb16float -
  • 32-bit float (RGB) rgb32float -
  • 8-bit fixed (Mono) mono8fixed - Single channel, where RGB will all have the same value, and Alpha will be 1.0. 8-bits per pixel.
  • 16-bit fixed (Mono) mono16fixed - Single channel, where RGB will all have the same value, and Alpha will be 1.0. 16-bits per pixel.
  • 16-bit float (Mono) mono16float - Single channel, where RGB will all have the same value, and Alpha will be 1.0. 16-bits per pixel.
  • 32-bit float (Mono) mono32float - Single channel, where RGB will all have the same value, and Alpha will be 1.0. 32-bits per pixel.
  • 8-bit fixed (RG) rg8fixed - A 2 channel format, R and G have values, while B is 0 always and Alpha is 1.0. 8-bits per channel, 16-bits total per pixel.
  • 16-bit fixed (RG) rg16fixed - A 2 channel format, R and G have values, while B is 0 always and Alpha is 1.0. 16-bits per channel, 32-bits total per pixel.
  • 16-bit float (RG) rg16float - A 2 channel format, R and G have values, while B is 0 always and Alpha is 1.0. 16-bits per channel, 32-bits total per pixel.
  • 32-bit float (RG) rg32float - A 2 channel format, R and G have values, while B is 0 always and Alpha is 1.0. 32-bits per channel, 64-bits total per pixel.
  • 8-bit fixed (A) a8fixed - An Alpha only format that has 8-bits per channel, 8-bits per pixel.
  • 16-bit fixed (A) a16fixed - An Alpha only format that has 16-bits per channel, 16-bits per pixel.
  • 16-bit float (A) a16float - An Alpha only format that has 16-bits per channel, 16-bits per pixel.
  • 32-bit float (A) a32float - An Alpha only format that has 32-bits per channel, 32-bits per pixel.
  • 8-bit fixed (Mono+Alpha) monoalpha8fixed - A 2 channel format, one value for RGB and one value for Alpha. 8-bits per channel, 16-bits per pixel.
  • 16-bit fixed (Mono+Alpha) monoalpha16fixed - A 2 channel format, one value for RGB and one value for Alpha. 16-bits per channel, 32-bits per pixel.
  • 16-bit float (Mono+Alpha) monoalpha16float - A 2 channel format, one value for RGB and one value for Alpha. 16-bits per channel, 32-bits per pixel.
  • 32-bit float (Mono+Alpha) monoalpha32float - A 2 channel format, one value for RGB and one value for Alpha. 32-bits per channel, 64-bits per pixel.


Operator Inputs

  • Input 0 -
  • Input 1 -
  • Input 2 -

TouchDesigner Build:

TOPs
Add • Anti Alias • Blob Track • Blur • Buffer Select • Cache Select • Cache • Channel Mix • CHOP to • Chroma Key • Circle • Composite • Constant • Convolve • Corner Pin • CPlusPlus • Crop • Cross • Cube Map • Depth • Difference • DirectX In • DirectX Out • Displace • Edge • Emboss • Feedback • Fit • Flip • Function • GLSL Multi • GLSL • HSV Adjust • HSV to RGB • Import Select • In • Inside • Introduction To TOPs id • Kinect Azure Select • Kinect Azure • Kinect • Layout • Leap Motion • Level • Limit • Lookup • Luma Blur • Luma Level • Math • Matte • Mirror • Monochrome • Movie File In • Movie File Out • Multiply • NDI In • NDI Out • Noise • Normal Map • Notch • Null • Nvidia Flex • Nvidia Flow • Oculus Rift • OP Viewer • OpenColorIO • OpenVR • Ouster Select • Ouster • Out • Outside • Over • Pack • Photoshop In • Point File In • Point File Select • PreFilter Map • Projection • Ramp • RealSense • Rectangle • Remap • Render Pass • Render Select • Render • Reorder • Resolution • RGB Key • RGB to HSV • Scalable Display • Screen Grab • Screen • Select • Shared Mem In • Shared Mem Out • Slope • SSAO • Stype • Substance Select • Substance • Subtract • SVG • Switch • Syphon Spout In • Syphon Spout Out • Text • Texture 3D • Texture Sampling arameters • Threshold • Tile • Time Machine • TOP • TOP iewer • Touch In • Touch Out • Transform • Under • Video Device In • Video Device Out • Video Stream In • Video Stream Out • Vioso • Web Render • ZED

An Operator Family that creates, composites and modifies images, and reads/writes images and movies to/from files and the network. TOPs run on the graphics card's GPU.

An Operator Family that manipulates text strings: multi-line text or tables. Multi-line text is often a command Script, but can be any multi-line text. Tables are rows and columns of cells, each containing a text string.

The OpenGL code that creates a rendered image from polygons and textures. Shaders can be made of up to three parts: Vertex Shader, Geometry Shader and/or Pixel Shader, which are either embedded inside Materials, or placed in Text DATs and referenced to a GLSL Material.

An Operator Family which operate on Channels (a series of numbers) which are used for animation, audio, mathematics, simulation, logic, UI construction, and many other applications.

Binding is a Parameter Mode that ties two or more parameters together, where changing the value of any one of the bound parameters changes value of all the bound parameters. The actual value is stored in one of bound parameters, called the bind master parameter.

The width and height of an image in pixels. Most TOPs, like the Movie File In TOP can set the image resolution. See Aspect Ratio for the width/height ratio of an image, taking into account non-square pixels.

The viewer of a node can be (1) the interior of a node (the Node Viewer), (2) a floating window (RMB->View... on node), or (3) a Pane that graphically shows the results of an operator.

A CHOP outputs one or more channels, where a channel is simply a sequence of numbers, representing motion, audio, etc. Channels are passed between CHOPs in TouchDesigner networks. See also Export.