COMP Instance 3 Page

From Derivative
Jump to navigation Jump to search

Parameters - Instance 3 Page

Custom attributes allow arbitrary attributes to be assigned to instances, usable in a GLSL MAT. They can be accessed using TDInstanceCustomAttrib0(), TDInstanceCustomAttrib1() etc. For more information refer to Write a GLSL Material. These attributes will be ignored in other materials such as the PBR MAT.

Below you can add more parameters as you require more custom attributes. Different GPUs will have a different number of maximum custom attributes supported.

OP instance0customop - Select a specific operator to get data from for the instance attributes below. If not specified, the the operator specified in the 'Default Instance OP' on the Instance parameter page can be used.

X instance0customx - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.

Y instance0customy - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.

Z instance0customz - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.

W instance0customw - Select what data to use for this instance attribute, use the drop-down menu on the right to easily select from the available options.