commit 54f36df6fbd8cf04ef503e1a4ece0f6951aeeac0 parent b28ba415d635335475cd38e341d29972027900be Author: Martin Kloeckner <mjkloeckner@gmail.com> Date: Fri, 5 Jul 2024 13:53:40 -0300 move shaders from `assets` folder to `src` Diffstat:
7 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tp/src/scene.js b/tp/src/scene.js @@ -3,7 +3,7 @@ import * as dat from 'dat.gui'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js'; import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js'; -import { vertexShader, fragmentShader } from '/assets/shaders.js'; +import { vertexShader, fragmentShader } from '/src/shaders.js'; import { generateTunnelGeometry } from '/src/tunnel.js'; import { createInstancedTrees } from '/src/trees.js'; diff --git a/tp/assets/shaders.js b/tp/src/shaders.js diff --git a/tp/src/standalone/terrain.js b/tp/src/standalone/terrain.js @@ -1,7 +1,7 @@ import * as THREE from 'three'; import * as dat from 'dat.gui'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; -import { vertexShader, fragmentShader } from '/assets/shaders.js'; +import { vertexShader, fragmentShader } from '/src/shaders.js'; let scene, camera, renderer, container, terrainMaterial, terrainGeometry, terrain; diff --git a/tp/src/standalone/track-map.js b/tp/src/standalone/track-map.js @@ -1,7 +1,7 @@ import * as THREE from 'three'; import * as dat from 'dat.gui'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; -import { vertexShader, fragmentShader } from '/assets/shaders.js'; +import { vertexShader, fragmentShader } from '/src/shaders.js'; let scene, camera, renderer, container, terrainMaterial, terrainGeometry, terrain; let treesForbiddenMapData, treesForbiddenMap, elevationMap, elevationMapData; diff --git a/tp/src/standalone/trees.js b/tp/src/standalone/trees.js @@ -1,7 +1,7 @@ import * as THREE from 'three'; import * as dat from 'dat.gui'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; -import { vertexShader, fragmentShader } from '/assets/treesShaders.js'; +import { vertexShader, fragmentShader } from '/src/treesShaders.js'; let scene, camera, renderer, container, terrainMaterial, instancedTrees; diff --git a/tp/src/terrain.js b/tp/src/terrain.js @@ -1,5 +1,5 @@ import * as THREE from 'three'; -import { vertexShader, fragmentShader } from '/assets/shaders.js'; +import { vertexShader, fragmentShader } from '/src/shaders.js'; const widthSegments = 100; const heightSegments = 100; diff --git a/tp/assets/treesShaders.js b/tp/src/treesShaders.js