Skip to content

Commit

Permalink
Merge pull request #10 from Shubidumdu/pbr
Browse files Browse the repository at this point in the history
Modify Pbr
  • Loading branch information
Shubidumdu authored May 14, 2024
2 parents c3ddb83 + 919bb8f commit f8bb859
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
5 changes: 3 additions & 2 deletions pages/pbr/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const roughnessInput = document.getElementById('roughness') as HTMLInputElement;

const canvas = document.getElementById('canvas') as HTMLCanvasElement;
const engine = new Engine(canvas, true);

engine.displayLoadingUI();

const scene = new Scene(engine);
const envTexture = CubeTexture.CreateFromPrefilteredData(
environmentPath,
Expand All @@ -33,8 +36,6 @@ scene.createDefaultSkybox(envTexture);
Effect.ShadersStore['pbrVertexShader'] = pbrVertexShader;
Effect.ShadersStore['pbrFragmentShader'] = pbrFragmentShader;

engine.displayLoadingUI();

const lights = [
new PointLight('light', new Vector3(4, 5, -1)),
new PointLight('light', new Vector3(5, 12, -1)),
Expand Down
13 changes: 0 additions & 13 deletions pages/pbr/style.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
canvas {
width: 100%;
height: 100%;
}

img {
z-index: 999;
position: absolute;
left: 0;
bottom: 0;
height: 80px;
}

button {
position: fixed;
bottom: 1rem;
Expand Down
Binary file modified pages/pbr/tricanaOfCoimbra.glb
Binary file not shown.

0 comments on commit f8bb859

Please sign in to comment.