Unity Products:Amplify Shader Editor/Billboard: Difference between revisions
ampwiki>Amplify RnD Rick No edit summary |
AmplifyWiki (talk | contribs) m (1 revision imported) |
(No difference)
|
Latest revision as of 00:06, 2 December 2023
Billboard Node
The Billboard node will rotate vertex data ( position + normal ) to align object's axis to current camera.
This node is a bit different from all others as it injects the necessary code into the vertex body and writes directly on the vertex position and normal. It outputs a value of 0 so it can be connected directly to a vertex port ( only if that port is a relative vertex offset ) or it can be used in an Add node so further vertex operations can be placed.
Billboards can be set through its Type either as Cylindrical where only the object X and Z axis are aligned with the camera ( useful when rendering trees ) or as Spherical where all axis are aligned.
Also, through the Ignore Rotation parameter an object's initial rotation can be either completely ignored and overridden, or it can be used as a delta rotation over the billboard final calculations.
NOTE: Billboard node should only be connected to vertex ports.
Nodes used:
Texture Sample,
Billboard,
Vertex Position,
Scale,
Add
Node Parameter | Description | Default Value |
---|---|---|
Type | Defines which of the object's axis should be aligned with the camera
|
Cylindrical |
Ignore Rotation | If turned off, the object initial rotation will be used as a delta rotation on top of the billboard final calculated rotation.
On the other way, if turned on the object initial rotation will be completely ignored and the final rotation will be only be set by the billboard result. |
False |