grass reflection and light color

This commit is contained in:
Kseninia Mikhaylova 2024-06-14 12:25:43 +03:00
parent df88962442
commit 755077a3e1
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ const groundMaterial = {
displacementMap: pbrTexture.displacementMap, displacementMap: pbrTexture.displacementMap,
normalMap: pbrTexture.normalMap, normalMap: pbrTexture.normalMap,
color: "#555", color: "#555",
roughness: 1, roughness: 0.25,
metalness: 0, metalness: 0,
side: FrontSide side: FrontSide
} }
@ -52,7 +52,7 @@ for (const key in pbrTexture) {
element.wrapT = RepeatWrapping element.wrapT = RepeatWrapping
element.repeat.x = repeat element.repeat.x = repeat
element.repeat.y = repeat element.repeat.y = repeat
// element.flipY = false element.flipY = false
} }
} }
} }
@ -122,9 +122,9 @@ onMounted(() => {
}) })
const pointLight = light.children[2] const pointLight = light.children[2]
pointLight.color = '#f0dea9'
pointLight.shadow.camera.near = 50 pointLight.shadow.camera.near = 50
const k = 1 const k = 1
console.log(pointLight.shadow)
pointLight.shadow.mapSize.width = 512 * k pointLight.shadow.mapSize.width = 512 * k
pointLight.shadow.mapSize.height = 512 * k pointLight.shadow.mapSize.height = 512 * k
pointLight.shadow.bias = -0.001 pointLight.shadow.bias = -0.001