CreateLight method

Light CreateLight(
  1. LightType type,
  2. Vector3 position,
  3. Vector3 target,
  4. Color color,
  5. Shader shader,
)

Create a light and get its shader locations

Implementation

Light CreateLight(
  LightType type,
  Vector3 position,
  Vector3 target,
  Color color,
  Shader shader,
) => run(
  () => _debugLabels.CreateLight(type, position, target, color, shader),
  () => _flat.CreateLight(
    type.value,
    position,
    target,
    color,
    shader,
  ),
);