Skip to content

Commit

Permalink
Fix #15786
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh committed Nov 7, 2024
1 parent 1233da9 commit abc0497
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/dev/addons/src/htmlMesh/htmlMeshRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ export class HtmlMeshRenderer {
this._height = height;
this._heightHalf = this._height / 2;

if (!this._inSceneElements || !this._overlayElements) {
return;
}

const domElements = [this._inSceneElements!.domElement, this._overlayElements!.domElement, this._inSceneElements!.cameraElement, this._overlayElements!.cameraElement];
domElements.forEach((dom) => {
if (dom) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ export class VolumetricLightScatteringPostProcess extends PostProcess {

// Configure mesh
this.mesh = mesh ?? VolumetricLightScatteringPostProcess.CreateDefaultMesh("VolumetricLightScatteringMesh", scene);

// Configure
this._createPass(scene, ratio.passRatio || ratio);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void main(void) {
}

vec4 realColor = texture2D(textureSampler, vUV);
gl_FragColor = ((vec4((vec3(color.r, color.g, color.b) * exposure), 1)) + (realColor * (1.5 - 0.4)));
gl_FragColor = ((vec4((vec3(color.r, color.g, color.b) * exposure), realColor.a)) + (realColor * (1.5 - 0.4)));

#define CUSTOM_FRAGMENT_MAIN_END
}

0 comments on commit abc0497

Please sign in to comment.