Settings constructor

Settings({
  1. bool useSourceTexture = false,
  2. bool enableShadowMap = true,
  3. bool autoClear = true,
  4. Map<String, dynamic>? renderOptions,
  5. bool animate = true,
  6. bool alpha = false,
  7. bool autoClearDepth = true,
  8. bool autoClearStencil = true,
  9. double clearAlpha = 1.0,
  10. int clearColor = 0x000000,
  11. bool localClippingEnabled = false,
  12. List<Plane> clippingPlanes = const [],
  13. ColorSpace colorSpace = ColorSpace.srgb,
  14. int outputEncoding = sRGBEncoding,
  15. int toneMapping = NoToneMapping,
  16. int shadowMapType = PCFShadowMap,
  17. double toneMappingExposure = 1.0,
  18. bool logarithmicDepthBuffer = false,
  19. bool stencil = true,
  20. WebXRManager xr(
    1. WebGLRenderer renderer,
    2. dynamic gl
    )?,
  21. bool antialias = false,
  22. bool depth = true,
  23. bool premultipliedAlpha = true,
  24. bool preserveDrawingBuffer = false,
  25. PowerPreference powerPreference = core.PowerPreference.defaultp,
  26. bool failIfMajorPerformanceCaveat = false,
  27. bool reverseDepthBuffer = false,
  28. Precision precision = core.Precision.highp,
  29. double? screenResolution,
})

Implementation

Settings({
  this.useSourceTexture = false,
  this.enableShadowMap = true,
  this.autoClear = true,
  Map<String,dynamic>? renderOptions,
  this.animate = true,
  this.alpha = false,
  this.autoClearDepth = true,
  this.autoClearStencil = true,
  this.clearAlpha = 1.0,
  this.clearColor = 0x000000,
  this.localClippingEnabled = false,
  this.clippingPlanes = const [],
  this.colorSpace = ColorSpace.srgb,
  this.outputEncoding = sRGBEncoding,
  this.toneMapping = NoToneMapping,
  this.shadowMapType = PCFShadowMap,
  this.toneMappingExposure = 1.0,
  this.logarithmicDepthBuffer = false,
  this.stencil = true,
  this.xr,
  this.antialias = false,

  this.depth = true,
  this.premultipliedAlpha = true,
  this.preserveDrawingBuffer = false,
  this.powerPreference = core.PowerPreference.defaultp,
  this.failIfMajorPerformanceCaveat = false,
  this.reverseDepthBuffer = false,
  this.precision = core.Precision.highp,
  this.screenResolution
}){
  this.renderOptions = renderOptions ?? {
    "format": RGBAFormat,
    "samples": 4
  };
}