Game
- Added more ball in scene - Modify Lambert texture to Physical - Implement RectAreaLight in scene
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user