Class LightDirectionalGizmo
Represents a directional light gizmo used to visually represent light direction in a 3D scene.
public class LightDirectionalGizmo
- Inheritance
-
LightDirectionalGizmo
Constructors
LightDirectionalGizmo(GraphicsDevice, Color?)
Initializes a new instance of the LightDirectionalGizmo class with the specified graphics device and optional color.
public LightDirectionalGizmo(GraphicsDevice graphicsDevice, Color? color = null)
Parameters
graphicsDeviceGraphicsDeviceThe graphics device used to render the gizmo.
colorColor?An optional color to apply to the gizmo. If null, white is used.
Exceptions
- ArgumentNullException
Thrown if the
graphicsDeviceis null.
Methods
Create(Entity)
Creates the directional light gizmo and attaches it to the specified root entity.
public Entity Create(Entity root)
Parameters
rootEntityThe root entity to which the light gizmo is attached.
Returns
- Entity
The root entity with the light gizmo added.