LightD constructor

LightD({
  1. Pointer<LightC>? originalPointer,
  2. LightType type = .LIGHT_POINT,
  3. bool enabled = false,
  4. Vector3D? position,
  5. Vector3D? target,
  6. ColorD? color,
  7. double attenuation = 0,
  8. int enabledLoc = 0,
  9. int typeLoc = 0,
  10. int positionLoc = 0,
  11. int targetLoc = 0,
  12. int colorLoc = 0,
  13. int attenuationLoc = 0,
})

Implementation

LightD({
  super.originalPointer,
  this.type = .LIGHT_POINT,
  this.enabled = false,
  Vector3D? position,
  Vector3D? target,
  ColorD? color,
  this.attenuation = 0,
  this.enabledLoc = 0,
  this.typeLoc = 0,
  this.positionLoc = 0,
  this.targetLoc = 0,
  this.colorLoc = 0,
  this.attenuationLoc = 0,
}) :
  position = position ?? .zero(),
  target = target ?? .zero(),
  color = color ?? .zero();