Interface: RendererOptions
Table of contents
Properties
- dpr
- autoClear
- depth
- alpha
- antialias
- stencil
- powerPreference
- premultipliedAlpha
- preserveDrawingBuffer
- requestWebGl2
- frustumCull
- extensions
Properties
dpr
• dpr: number
指定 devicePixelRatio
Defined in
autoClear
• autoClear: boolean
指定是否开启自动清除
Defined in
depth
• depth: boolean
指定是否开启深度检测
Defined in
alpha
• alpha: boolean
指定画布是否包含alpha缓冲区,仅在传入的是 canvas
对象时有用
Defined in
antialias
• antialias: boolean
指定是否开启抗锯齿,仅在传入的是 canvas
对象时有用
Defined in
stencil
• stencil: boolean
指定是否开启模板缓冲区
Defined in
powerPreference
• powerPreference: WebGLPowerPreference
指定GPU的性能配置,仅在传入的是 canvas
对象时有用
Defined in
premultipliedAlpha
• premultipliedAlpha: boolean
指定是否开启预乘alpha
Defined in
preserveDrawingBuffer
• preserveDrawingBuffer: boolean
是否开启绘制缓冲区,仅在传入的是 canvas
对象时有用
Defined in
requestWebGl2
• requestWebGl2: boolean
获取 webgl2
实例,仅在传入的是 canvas
对象时有用
Defined in
frustumCull
• frustumCull: boolean
是否开启视锥剔除,默认不开启
Defined in
extensions
• extensions: ExternalExtensionKeys
[]
WebGL 上下文支持的扩展列表。默认 []