Lighting constructor

Lighting({
  1. required EnvironmentMap environmentMap,
  2. EnvironmentMap? environmentMapB,
  3. double environmentBlend = 0.0,
  4. double environmentIntensity = 1.0,
  5. Matrix3? environmentTransform,
  6. Texture? diffuseShTexture,
  7. IrradianceFieldBinding? irradianceField,
  8. DirectionalLight? directionalLight,
  9. Vector3? directionalLightDirection,
  10. Texture? punctualParamsTexture,
  11. Texture? punctualIndexTexture,
  12. int punctualParamsCount = 0,
  13. int punctualIndexWidth = 0,
  14. int punctualIndexHeight = 0,
  15. int spotShadowCount = 0,
  16. double spotShadowDepthBias = 0.0,
  17. double spotShadowNormalBias = 0.0,
  18. double spotShadowSoftness = 0.0,
  19. Texture? shadowMap,
  20. List<ShadowCascade> cascades = const [],
  21. Texture? ssaoMap,
  22. double specularOcclusionMode = 0.0,
  23. double ssaoDirectLightAffect = 0.0,
  24. double ssaoMultiBounce = 0.0,
  25. bool ssaoBentNormals = false,
  26. bool ssaoContactShadows = false,
  27. bool ssaoIndirectLight = false,
  28. Size viewportSize = ui.Size.zero,
  29. Fog? fog,
  30. Texture? sceneDepthLinear,
  31. Texture? filteredSceneColor,
  32. int transmissionFilterBandCount = 0,
  33. Vector3? cameraPosition,
  34. Vector3? cameraForward,
  35. Vector3? cameraRight,
  36. Vector3? cameraUp,
  37. double tanHalfFovX = 0.0,
  38. double tanHalfFovY = 0.0,
  39. double time = 0.0,
  40. bool planarReflectionsSuppressed = false,
})

Implementation

Lighting({
  required this.environmentMap,
  this.environmentMapB,
  this.environmentBlend = 0.0,
  this.environmentIntensity = 1.0,
  Matrix3? environmentTransform,
  this.diffuseShTexture,
  this.irradianceField,
  this.directionalLight,
  this.directionalLightDirection,
  this.punctualParamsTexture,
  this.punctualIndexTexture,
  this.punctualParamsCount = 0,
  this.punctualIndexWidth = 0,
  this.punctualIndexHeight = 0,
  this.spotShadowCount = 0,
  this.spotShadowDepthBias = 0.0,
  this.spotShadowNormalBias = 0.0,
  this.spotShadowSoftness = 0.0,
  this.shadowMap,
  this.cascades = const [],
  this.ssaoMap,
  this.specularOcclusionMode = 0.0,
  this.ssaoDirectLightAffect = 0.0,
  this.ssaoMultiBounce = 0.0,
  this.ssaoBentNormals = false,
  this.ssaoContactShadows = false,
  this.ssaoIndirectLight = false,
  this.viewportSize = ui.Size.zero,
  this.fog,
  this.sceneDepthLinear,
  this.filteredSceneColor,
  this.transmissionFilterBandCount = 0,
  this.cameraPosition,
  this.cameraForward,
  this.cameraRight,
  this.cameraUp,
  this.tanHalfFovX = 0.0,
  this.tanHalfFovY = 0.0,
  this.time = 0.0,
  this.planarReflectionsSuppressed = false,
}) : environmentTransform = environmentTransform ?? Matrix3.identity();