|
PixelMaterialSetFixedUpVector Method |
SetFixedUpVector sets a fixed up Vector3 to be always used for up vector when orienting pixel towards the camera.
By default, pixels always face the camera so that their up vector is perpendicular to the look direction.
But for some cases (for example for rendering trees that always grow upwards), you can fix the up vector.
To reset that up vector to default behaviour, call
ResetFixedUpVector.
Fixed up vector can be used only when
IsWorldSize is set to true.
Namespace: Ab3d.DirectX.MaterialsAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax public void SetFixedUpVector(
Vector3 upVector
)
Parameters
- upVector Vector3
- up vector
See Also