Browse Source

add msaa option

tags/2.11.0
Caven Chen 3 years ago
parent
commit
4a2d41c960
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      modules/option/ViewerOption.js

+ 4
- 0
modules/option/ViewerOption.js View File

@@ -66,6 +66,10 @@ class ViewerOption {

scene.postProcessStages.fxaa.enabled = this._options.enableFxaa ?? false

if (scene.msaaSupported) {
scene.msaaSamples = +this._options.msaaSamples || 1
}

return this
}


Loading…
Cancel
Save