CreateLight method

LightD CreateLight(
  1. LightType type,
  2. Vector3D position,
  3. Vector3D target,
  4. ColorD color,
  5. ShaderD shader,
)

Create a light and get its shader locations

Implementation

LightD CreateLight(
  LightType type,
  Vector3D position,
  Vector3D target,
  ColorD color,
  ShaderD shader,
) => run(
  () => _debugLabels.CreateLight(type, position, target, color, shader),
  () => _flat.CreateLight(
    type.value,
    position,
    target,
    color,
    shader,
  ),
);