nw::gfx::TransformNode::SetResourceBasedTransform Member Function
void SetResourceBasedTransform(
const math::MTX34 & transformMatrix,
const math::VEC3 & scale = math::VEC3(1.0f, 1.0f, 1.0f)
);
| Name | Description | |
|---|---|---|
| in | transformMatrix | Compositing transform matrix. |
| in | scale | Scaling. |
Sets a transform based on a resource's transform information.
Multiplies the transform matrix representing the resource's transform information by the transform matrix specified in the arguments, and sets the result to a node. The transformMatrix argument cannot include any scale component.
Note that this function can affect performance, as it generates a matrix from the resource's transform information every time the function is run.
CONFIDENTIAL