True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyUnique ID of this Component.
Readonly
viewThe View to which this SAO belongs.
Gets if SAO is currently applied.
This is true
when View.renderMode is
in SAO.renderModes.
Gets the SAO bias.
Default value is 0.5
.
Sets the SAO bias.
Default value is 0.5
.
Gets the SAO blend cutoff.
Default value is 0.3
.
Normally you don't need to alter this.
Sets the SAO blend cutoff.
Default value is 0.3
.
Normally you don't need to alter this.
Gets the SAO blend scale.
Default value is 1.0
.
Normally you don't need to alter this.
Sets the SAO blend factor.
Default value is 1.0
.
Normally you don't need to alter this.
Gets whether Guassian blur is enabled.
Default value is true
.
Sets whether Guassian blur is enabled.
Default value is true
.
Gets the degree of darkening (ambient obscurance) produced by the SAO effect.
Default value is 0.15
.
Sets the degree of darkening (ambient obscurance) produced by the SAO effect.
Default value is 0.15
.
Gets the maximum area that SAO takes into account when checking for possible occlusion for each fragment.
Default value is 100.0
.
Sets the maximum area that SAO takes into account when checking for possible occlusion for each fragment.
Default value is 100.0
.
Gets the SAO minimum resolution.
Default value is 0.0
.
Sets the SAO minimum resolution.
Default value is 0.0
.
Gets the number of SAO samples.
Default value is 10
.
Sets the number of SAO samples.
Default value is 10
.
Update this sparingly, since it causes a shader recompile.
Gets which rendering modes in which to apply SAO.
The View will apply SAO whenever View.renderMode has been set one of these values.
Default value is [QualityRender].
Sets which rendering modes in which to apply SAO.
The View will apply SAO whenever View.renderMode has been set one of these values.
Default value is [QualityRender].
Gets the SAO occlusion scale.
Default value is 1.0
.
Sets the SAO occlusion scale.
Default value is 1.0
.
Gets whether SAO is supported by this browser and GPU.
Even when enabled, SAO will only work if supported.
Protected
cleanForces this component to action any deferred state updates.
Protected
cleanGives this component an opportunity to action any defered state updates.
Protected
errorProtected
Logs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
The error message to log
Protected
logProtected
Logs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
Protected
setFlags this component as having a defered state updates it needs to perform.
Gets the current configuration of this SAO.
Protected
warnProtected
Logs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
The warning message to log
Emits an event when the Component has been destroyed.
Configures Scalable Ambient Obscurance (SAO) for a View.
See @xeokit/sdk/viewer for usage info.