pavement
This commit is contained in:
parent
780252e392
commit
cb18679ab1
BIN
img/pavement.jpg
Normal file
BIN
img/pavement.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 501 KiB |
10
main.js
10
main.js
@ -88,7 +88,7 @@ piano.loop = false
|
|||||||
const loadMngr = new THREE.LoadingManager();
|
const loadMngr = new THREE.LoadingManager();
|
||||||
const loader = new THREE.TextureLoader(loadMngr);
|
const loader = new THREE.TextureLoader(loadMngr);
|
||||||
const waterTexture = loader.load('img/waternormals.jpg');
|
const waterTexture = loader.load('img/waternormals.jpg');
|
||||||
const groundTexture = loader.load('img/ground.jpg');
|
const groundTexture = loader.load('img/pavement.jpg');
|
||||||
const wallTexture = loader.load('img/wall.jpg');
|
const wallTexture = loader.load('img/wall.jpg');
|
||||||
const woodTexture = loader.load('img/wood.jpg');
|
const woodTexture = loader.load('img/wood.jpg');
|
||||||
loadMngr.onLoad = () => {
|
loadMngr.onLoad = () => {
|
||||||
@ -297,12 +297,12 @@ raftOctree.fromGraphNode( raft )
|
|||||||
|
|
||||||
const wallMaterial = new THREE.MeshPhongMaterial( {
|
const wallMaterial = new THREE.MeshPhongMaterial( {
|
||||||
map : wallTexture,
|
map : wallTexture,
|
||||||
color : 0xFFFFFF,
|
color : 0xFCF8E5,
|
||||||
emissive : 0,
|
emissive : 0,
|
||||||
specular : 0x505050,
|
specular : 0x505050,
|
||||||
shininess : 7,
|
shininess : 4,
|
||||||
bumpMap : wallTexture,
|
bumpMap : wallTexture,
|
||||||
bumpScale : .02,
|
bumpScale : .01,
|
||||||
depthFunc : 3,
|
depthFunc : 3,
|
||||||
depthTest : true,
|
depthTest : true,
|
||||||
depthWrite: true
|
depthWrite: true
|
||||||
@ -336,7 +336,7 @@ if ( showGUI ) {
|
|||||||
octreeHelper.visible = false;
|
octreeHelper.visible = false;
|
||||||
scene.add( octreeHelper );
|
scene.add( octreeHelper );
|
||||||
const lightHelper = new THREE.DirectionalLightHelper( sunLight, .5 )
|
const lightHelper = new THREE.DirectionalLightHelper( sunLight, .5 )
|
||||||
lightHelper.position.copy(mazeMap.start)
|
lightHelper.position.copy(maze.start)
|
||||||
lightHelper.visible = false;
|
lightHelper.visible = false;
|
||||||
scene.add( lightHelper );
|
scene.add( lightHelper );
|
||||||
var cameraHelper = new THREE.CameraHelper(sunLight.shadow.camera);
|
var cameraHelper = new THREE.CameraHelper(sunLight.shadow.camera);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user