CameraDirection

CameraDirection

Emitter's property. Outputs the camera's look direction as a 3D vector.

This value is set by the renderer at the start of each frame. It represents the direction from the camera into the scene and is useful for billboard calculations, view-dependent effects, or depth-based particle behavior.

Output:

  • Direction (vec3): Normalized camera look direction vector.