attributes

 

Tag: attributes
Parent tag: assets
Attributes (none)
Child tags:

This tag allows the definition of user attributes for some objects in Nau. The goal is to get more flexibility and clearer projects.

Nau’s objects have a set of pre-defined attributes, for instance cameras have attributes for the field of view, position, direction, etc. User attributes allow to complement the pre-defined set of attributes with problem specific attributes. For instance, we can define a state attribute named “fogDensity” and define a value for it in each different material state in the material library file.

Attributes can be set when defining an object using the same rules as any other component, manipulated with lua scripts, and accessed within shaders.

The tag attributes contains a set of tags attribute.

	
	<attributes>
		<attribute type="RENDERER" name="frequency" data="FLOAT" value="32" />
		<attribute type="RENDERER" name="light" data="VEC4" x="0.44" y = "0.21" z="0.0" w = "1.0" />
	</attributes>