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. int outputEncoding = LinearEncoding,
  14. int toneMapping = NoToneMapping,
  15. int shadowMapType = PCFShadowMap,
  16. double toneMappingExposure = 1.0,
  17. bool logarithmicDepthBuffer = false,
  18. bool stencil = true,
})

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.outputEncoding = LinearEncoding,
  this.toneMapping = NoToneMapping,
  this.shadowMapType = PCFShadowMap,
  this.toneMappingExposure = 1.0,
  this.logarithmicDepthBuffer = false,
  this.stencil = true
}){
  this.renderOptions = renderOptions ?? {
    "format": RGBAFormat,
    "samples": 4
  };
}