- Added more ball in scene
    - Modify Lambert texture to Physical
    - Implement RectAreaLight in scene
This commit is contained in:
Hugo Bourgeon
2024-08-08 16:38:35 +02:00
parent d92f1eab47
commit ea0404d606
65 changed files with 161 additions and 103532 deletions

View File

@ -6,7 +6,7 @@
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/30 13:50:51 by edbernar #+# #+# */
/* Updated: 2024/08/07 16:26:17 by hubourge ### ########.fr */
/* Updated: 2024/08/08 15:36:48 by hubourge ### ########.fr */
/* */
/* ************************************************************************** */
@ -26,7 +26,7 @@ function createMap(scene) {
function createWall(scene, x, y, z, thickness) {
const geometryWall = new THREE.BoxGeometry(9, 0.5, thickness);
const materialWall = new THREE.MeshLambertMaterial({
const materialWall = new THREE.MeshPhysicalMaterial({
color: 0x3b3b3b,
});
const wall = new THREE.Mesh(geometryWall, materialWall);
@ -38,7 +38,7 @@ function createWall(scene, x, y, z, thickness) {
function createGround(scene) {
const geometry = new THREE.PlaneGeometry(9, 4.5, 1);
const material = new THREE.MeshLambertMaterial({
const material = new THREE.MeshPhysicalMaterial({
color: 0x3b3b3b,
});
const plane = new THREE.Mesh(geometry, material);