Skip to content

Commit

Permalink
Update neutronStar.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Feb 16, 2025
1 parent 607eedf commit 02c120f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/playgrounds/neutronStar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function createNeutronStarScene(engine: AbstractEngine): Promise<Sc

const neutronStarModel = newSeededNeutronStarModel(456, "Neutron Star Demo", []);
const neutronStar = new NeutronStar(neutronStarModel, scene);
neutronStar.getTransform().position = new Vector3(0, 0, 1).scaleInPlace(neutronStar.getRadius() * 200000);
neutronStar.getTransform().position = new Vector3(0, 0, 1).scaleInPlace(neutronStar.getRadius() * 2000000);

const volumetricLight = new VolumetricLight(neutronStar.mesh, neutronStar.volumetricLightUniforms, [], scene);
camera.attachPostProcess(volumetricLight);
Expand All @@ -68,7 +68,7 @@ export async function createNeutronStarScene(engine: AbstractEngine): Promise<Sc
);
camera.attachPostProcess(lensFlare);

camera.maxZ = 1e10;
camera.maxZ = 1e12;
defaultControls.getTransform().lookAt(neutronStar.getTransform().position);

scene.onBeforePhysicsObservable.add(() => {
Expand Down

0 comments on commit 02c120f

Please sign in to comment.