Skip to content

Commit

Permalink
#35 debug textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominux committed Jan 21, 2023
1 parent 008a0cc commit 67f7bb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified frontend/src/assets/environments/rainforest_trail/4k.env
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const ENV_TEXTURE =
'https://raw.githubusercontent.com/Dominux/spherical-go/main/frontend/src/assets/environments/rainforest_trail/4k.env'
'https://raw.githubusercontent.com/Dominux/spherical-go/main/frontend/src/assets/environments/rainforest_trail/16k.env'
export const GRID_MATERIAL =
'https://raw.githubusercontent.com/Dominux/spherical-go/main/frontend/src/assets/gridMaterial.json'

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/logic/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class Scene {

this._scene.environmentTexture = envTexture

const hdrSkybox = BABYLON.Mesh.CreateBox('hdrSkyBox', 4000.0, this._scene)
const hdrSkybox = BABYLON.Mesh.CreateBox('hdrSkyBox', 1000.0, this._scene)
const hdrSkyboxMaterial = new BABYLON.PBRMaterial('skyBox', this._scene)
hdrSkyboxMaterial.backFaceCulling = false
hdrSkyboxMaterial.reflectionTexture = envTexture.clone()
Expand Down

0 comments on commit 67f7bb8

Please sign in to comment.