A node for representing motion or velocity vectors. Foundation for advanced post processing effects like motion blur or TRAA.
The node keeps track of the model, view and projection matrices of the previous frame and uses them to compute offsets in NDC space. These offsets represent the final velocity.
Constructor
new VelocityNode()Constructs a new vertex color node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| projectionMatrix | null | Matrix4 | — | |
| previousModelWorldMatrix | UniformNode<mat4> | — | |
| previousProjectionMatrix | UniformNode<mat4> | — | |
| previousCameraViewMatrix | UniformNode<mat4> | — | |
| Method | Type | |
|---|---|---|
| setProjectionMatrix | (projectionMatrix: Matrix4) => void | |
| update | ({ frameId, camera, object }: NodeFrame) => void | |
| updateAfter | ({ object }: NodeFrame) => void | |
| setup | () => any | |
Extends
TempNodeTSL object that represents the velocity of a render pass.
Type
VelocityNode