Skip to content

Commit

Permalink
removed postprocessing in VR
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Dec 18, 2023
1 parent 0b23d1e commit 9f5888e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ts/xr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ translate(planet.getTransform(), new Vector3(0, 0, sphereRadius * 4));
const star = new Star("star", scene, 0.2); //PointLightWrapper(new PointLight("dir01", new Vector3(0, 1, 0), scene));
translate(star.getTransform(), new Vector3(0, 0, -sphereRadius * 5000));

const starfield = new StarfieldPostProcess(scene, [star], [planet], Quaternion.Identity());
/*const starfield = new StarfieldPostProcess(scene, [star], [planet], Quaternion.Identity());
camera.attachPostProcess(starfield);
xrCamera.attachPostProcess(starfield);
Expand All @@ -110,7 +110,7 @@ FlatCloudsPostProcess.CreateAsync("clouds", planet, planet.model.cloudsUniforms,
const lensflare = new LensFlarePostProcess(star, scene);
camera.attachPostProcess(lensflare);
xrCamera.attachPostProcess(lensflare);
});
});*/

const chunkForge = new ChunkForge(Settings.VERTEX_RESOLUTION);

Expand All @@ -132,7 +132,7 @@ scene.onBeforeRenderObservable.add(() => {

star.updateMaterial();

ocean.update(deltaTime);
//ocean.update(deltaTime);
});

scene.executeWhenReady(() => {
Expand Down

0 comments on commit 9f5888e

Please sign in to comment.