Category: Data > Shading State
This shader makes the transformation parameters from the scene element (miInstance) you choose available in the transform state structure as a transform matrix.
You can also make the transformation parameters for the element available in the transform state structure as a motion transform matrix for creating motion-blurred geometry.
This node is intended for shader developers who require low-level information during the rendering process. You should have some shader-writing knowledge in mental ray in order to use this tool properly.
You can use this shader to get the transform data from any element and then use it on another scene element. In this example, the object's planar texture projection is transformed using the object's transformation matrix: the translation of the object is used to create the motion blur with the two mixed textures projected on the planar texture support to give the impression of a moving film strip or train tracks.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License