Skip to content
Snippets Groups Projects
Commit 81c00c8f authored by jonschi's avatar jonschi
Browse files

update tire matieral properties

parent c0fed678
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,6 @@ import { Material, RGBA_ASTC_10x10_Format } from 'three'
const textureLoader = new THREE.TextureLoader()
const tireTexture = textureLoader.load('/textures/tireNormalMap.jpg')
// Debug
const gui = new dat.GUI()
// Canvas
const canvas = document.querySelector('canvas.webgl')
......@@ -24,8 +21,8 @@ const tireGeometry = new THREE.TorusGeometry(.7, .2, 16, 100)
// Materials
const tireMaterial = new THREE.MeshStandardMaterial()
tireMaterial.metalness = 0.7
tireMaterial.roughness = 0.2
tireMaterial.metalness = 0.5
tireMaterial.roughness = 0.4
tireMaterial.normalMap = tireTexture
tireMaterial.color = new THREE.Color(0xffffff)
......@@ -42,6 +39,10 @@ pointLight.position.set(2,3,4)
pointLight.intensity = 0.3
scene.add(pointLight)
// Debug GUI
const gui = new dat.GUI()
/**
* Sizes
*/
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment