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. FroxelLighting? froxels,
  16. int spotShadowCount = 0,
  17. int pointShadowTileCount = 0,
  18. int rectAreaLightCount = 0,
  19. @Deprecated('Each spot carries its own shadow parameters.') double spotShadowDepthBias = 0.0,
  20. @Deprecated('Each spot carries its own shadow parameters.') double spotShadowNormalBias = 0.0,
  21. @Deprecated('Each spot carries its own shadow parameters.') double spotShadowSoftness = 0.0,
  22. Texture? shadowMap,
  23. ShadowAtlasLayout? shadowAtlas,
  24. List<ShadowCascade> cascades = const [],
  25. Texture? ssaoMap,
  26. double specularOcclusionMode = 0.0,
  27. double ssaoDirectLightAffect = 0.0,
  28. double ssaoMultiBounce = 0.0,
  29. bool ssaoBentNormals = false,
  30. bool ssaoContactShadows = false,
  31. bool ssaoIndirectLight = false,
  32. Size viewportSize = ui.Size.zero,
  33. Fog? fog,
  34. Texture? sceneDepthLinear,
  35. Texture? filteredSceneColor,
  36. int transmissionFilterBandCount = 0,
  37. Vector3? cameraPosition,
  38. Vector3? cameraForward,
  39. Vector3? cameraRight,
  40. Vector3? cameraUp,
  41. double projectionScaleX = 0.0,
  42. double projectionScaleY = 0.0,
  43. double projectionOffsetX = 0.0,
  44. double projectionOffsetY = 0.0,
  45. bool orthographic = false,
  46. double time = 0.0,
  47. bool planarReflectionsSuppressed = false,
  48. bool surfaceDebugViews = 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.froxels,
  this.spotShadowCount = 0,
  this.pointShadowTileCount = 0,
  this.rectAreaLightCount = 0,
  @Deprecated('Each spot carries its own shadow parameters.')
  this.spotShadowDepthBias = 0.0,
  @Deprecated('Each spot carries its own shadow parameters.')
  this.spotShadowNormalBias = 0.0,
  @Deprecated('Each spot carries its own shadow parameters.')
  this.spotShadowSoftness = 0.0,
  this.shadowMap,
  this.shadowAtlas,
  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.projectionScaleX = 0.0,
  this.projectionScaleY = 0.0,
  this.projectionOffsetX = 0.0,
  this.projectionOffsetY = 0.0,
  this.orthographic = false,
  this.time = 0.0,
  this.planarReflectionsSuppressed = false,
  this.surfaceDebugViews = false,
}) : environmentTransform = environmentTransform ?? Matrix3.identity();