Skip to content
Snippets Groups Projects
Commit b9672e1e authored by HERRY Elwyn's avatar HERRY Elwyn
Browse files

Normal map a la nappe + optimisation car la limite est de 2MO POUR TOUT LE DOSSIER IMAGES COMPRISES

parent a830feb4
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,11 @@ function CreationNappe() { ...@@ -201,7 +201,11 @@ function CreationNappe() {
var cloth = new THREE.Mesh(clothGeometry, clothMaterial); var cloth = new THREE.Mesh(clothGeometry, clothMaterial);
cloth.rotation.x = -Math.PI / 2; // Mettre à plat cloth.rotation.x = -Math.PI / 2; // Mettre à plat
cloth.position.set(5, 2.71, 0); // Juste au-dessus de la table cloth.position.set(5, 2.71, 0); // Juste au-dessus de la table
const normalTexture = new THREE.TextureLoader().load(
'textures/nm_tissu.jpg'
)
clothMaterial.normalMap = normalTexture
clothMaterial.normalScale.set(2, 2)
cloth.receiveShadow = true; cloth.receiveShadow = true;
scene.add(cloth); scene.add(cloth);
} }
......
HERRY-M--HERRY-E/textures/fond.png

164 KiB | W: | H:

HERRY-M--HERRY-E/textures/fond.png

77.2 KiB | W: | H:

HERRY-M--HERRY-E/textures/fond.png
HERRY-M--HERRY-E/textures/fond.png
HERRY-M--HERRY-E/textures/fond.png
HERRY-M--HERRY-E/textures/fond.png
  • 2-up
  • Swipe
  • Onion skin
HERRY-M--HERRY-E/textures/nm_tissu.jpg

40.6 KiB

HERRY-M--HERRY-E/textures/texture_0_b.png

102 KiB | W: | H:

HERRY-M--HERRY-E/textures/texture_0_b.png

85.6 KiB | W: | H:

HERRY-M--HERRY-E/textures/texture_0_b.png
HERRY-M--HERRY-E/textures/texture_0_b.png
HERRY-M--HERRY-E/textures/texture_0_b.png
HERRY-M--HERRY-E/textures/texture_0_b.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment