- Updated the title in index.html from "Textures" to "Materials". - Enhanced script.js by adding GUI controls for material properties and loading various textures. - Removed unused textures: checkerboard-1024x1024.png, checkerboard-8x8.png, and minecraft.png. - Added new textures: environmentMap/2k.hdr, gradients/3.jpg, gradients/5.jpg, and multiple matcap textures (1.png to 8.png). - Implemented a MeshPhysicalMaterial with adjustable properties for metalness, roughness, transmission, and thickness. - Updated object rotations for better visual effects in the scene.
19 lines
328 B
JSON
19 lines
328 B
JSON
{
|
|
"name": "threejs-journey-exercise",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^6.2.2",
|
|
"vite-plugin-restart": "^0.4.2"
|
|
},
|
|
"dependencies": {
|
|
"lil-gui": "^0.20.0",
|
|
"three": "^0.174.0"
|
|
}
|
|
}
|