Settings constructor
Settings({
- bool useSourceTexture = false,
- bool enableShadowMap = true,
- bool autoClear = true,
- Map<
String, dynamic> ? renderOptions, - bool animate = true,
- bool alpha = false,
- bool autoClearDepth = true,
- bool autoClearStencil = true,
- double clearAlpha = 1.0,
- int clearColor = 0x000000,
- bool localClippingEnabled = false,
- List<
Plane> clippingPlanes = const [], - int outputEncoding = LinearEncoding,
- int toneMapping = NoToneMapping,
- int shadowMapType = PCFShadowMap,
- double toneMappingExposure = 1.0,
- bool logarithmicDepthBuffer = false,
- 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
};
}