Size, rotation, and scale aren't the only things we can do with NodePaths
. Render attributes are also set on NodePaths
. Controls that change how a model is handled by the renderer are called render attributes, and they can do a number of different things. They can change the color of a model, they can make it render as a wireframe instead of a solid, they can make it render as two-sided, and more. Let's take a look at the list of render attributes to get a feel for what they are:
AlphaTestAttrib
: Hides part of the model, based on the texture's alpha channel.AntialiasAttrib
: Controls full-screen antialiasing and polygon-edge antialiasing.AudioVolumeAttrib
: Applies a scale to audio volume for positional sounds.AuxBitplaneAttrib
: Causes shader generator to produce extra data.ClipPlaneAttrib
: Slices off a piece of the model, using a clipping plane.ColorAttrib
: Tints the model. Only works if the model is not illuminated.