| fade && (fade.isEditor = true) | fade && (fade.isEditor = true) | ||||
| const taa = this.getPlugin(TemporalAAPlugin) | const taa = this.getPlugin(TemporalAAPlugin) | ||||
| taa && (taa.enableStableNoise = true) | |||||
| taa && (taa.stableNoise = true) | |||||
| const rt = this.getPlugin(RenderTargetPreviewPlugin) | const rt = this.getPlugin(RenderTargetPreviewPlugin) | ||||
| if (rt) { | if (rt) { |
| webgiLogo.style.backgroundImage = `url(${getUrlQueryParam('logo-img')})` | webgiLogo.style.backgroundImage = `url(${getUrlQueryParam('logo-img')})` | ||||
| } | } | ||||
| webgiLogo.onclick = () => { | webgiLogo.onclick = () => { | ||||
| window.open(getUrlQueryParam('logo-link') || 'https://webgi.xyz', '_blank') | |||||
| window.open(getUrlQueryParam('logo-link') || 'https://webgi.dev', '_blank') | |||||
| } | } | ||||
| viewer.container.appendChild(webgiLogo) | viewer.container.appendChild(webgiLogo) | ||||
| tippy(webgiLogo, { | tippy(webgiLogo, { |
| // from GLTFObject3DExtrasExtension | // from GLTFObject3DExtrasExtension | ||||
| if (!this.userData.__keepShadowDef) { | if (!this.userData.__keepShadowDef) { | ||||
| this.castShadow = true | |||||
| const mat = Array.isArray(this.material) ? this.material[0] : this.material | |||||
| this.castShadow = !mat || !mat.transparent && !mat.transmission | |||||
| this.receiveShadow = true | this.receiveShadow = true | ||||
| this.userData.__keepShadowDef = true | this.userData.__keepShadowDef = true | ||||
| } | } |
| target: _blank | target: _blank | ||||
| - title: Advanced Rendering | - title: Advanced Rendering | ||||
| details: Supports advanced rendering plugins like SSAO, WebGi plugins(SSR, Bloom, GI), path tracing, etc for industry specific apps. | details: Supports advanced rendering plugins like SSAO, WebGi plugins(SSR, Bloom, GI), path tracing, etc for industry specific apps. | ||||
| link: https://webgi.xyz/ | |||||
| link: https://webgi.dev/ | |||||
| rel: external | rel: external | ||||
| target: _blank | target: _blank | ||||
| linkText: Checkout WebGi | linkText: Checkout WebGi |