function GeneratePlane(z=0,sizex=roomSize,sizey=roomSize){
	let quadGeometry = new THREE.PlaneBufferGeometry(sizex,sizey)

	let texture = new THREE.TextureLoader().load( 'textures/wood_texture.jpg' );
	let material = new THREE.MeshPhysicalMaterial({map:texture, side: THREE.DoubleSide})
	
	let plane = new THREE.Mesh(quadGeometry,material)
	plane.position.set(0,0,z)
	return plane
}
// Build a plan with z coordinate fixed and length sizex upon x direction, and sizey upon y direction, with a wooden texture on it
Build a plan with z coordinate fixed and length sizex upon x direction, and sizey upon y direction, with a wooden texture on it
Build a plan with z coordinate fixed and length sizex upon x direction and sizey upon y direction with a wooden texture on it
function GeneratePlane(z=0,sizex=roomSize,sizey=roomSize){
	let quadGeometry = new THREE.PlaneBufferGeometry(sizex,sizey)
	let texture = new THREE.TextureLoader().load( 'textures/wood_texture.jpg' );
	let material = new THREE.MeshPhysicalMaterial({map:texture, side: THREE.DoubleSide})
	let plane = new THREE.Mesh(quadGeometry,material)
	plane.position.set(0,0,z)
	return plane
}
function GeneratePlane ( z = 0 , sizex = roomSize , sizey = roomSize ) { let quadGeometry = new THREE . PlaneBufferGeometry ( sizex , sizey ) let texture = new THREE . TextureLoader ( ) . load ( 'textures/wood_texture.jpg' ) ; let material = new THREE . MeshPhysicalMaterial ( { map : texture , side : THREE . DoubleSide } ) let plane = new THREE . Mesh ( quadGeometry , material ) plane . position . set ( 0 , 0 , z ) return plane }
Build a plan with z coordinate fixed and length sizex upon x direction, and sizey upon y direction, with a wooden texture on it
Build a plan with z coordinate fixed and length sizex upon x direction and sizey upon y direction with a wooden texture on it