CreateLight method

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

Implementation

LightD CreateLight(
  LightType type,
  Vector3D position,
  Vector3D target,
  ColorD color,
  ShaderD shader,
) => run(
  () => 'CreateLight(${type.name}, $position, $target, $color, $shader)',
  () => rl.Light.CreateLight(
    type.value,
    _refVector31(position).ref,
    _refVector32(target).ref,
    _refColor1(color).ref,
    _refShader1(shader).ref,
  ).toD(),
);