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 [], - ColorSpace colorSpace = ColorSpace.srgb,
- int outputEncoding = sRGBEncoding,
- int toneMapping = NoToneMapping,
- int shadowMapType = PCFShadowMap,
- double toneMappingExposure = 1.0,
- bool logarithmicDepthBuffer = false,
- bool stencil = true,
- WebXRManager xr(
- WebGLRenderer renderer,
- dynamic gl
- bool antialias = false,
- bool depth = true,
- bool premultipliedAlpha = true,
- bool preserveDrawingBuffer = false,
- PowerPreference powerPreference = core.PowerPreference.defaultp,
- bool failIfMajorPerformanceCaveat = false,
- bool reverseDepthBuffer = false,
- Precision precision = core.Precision.highp,
- 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
};
}