Added a rotating scene

To try
This commit is contained in:
2023-11-10 11:08:55 +01:00
parent 988039705c
commit 50ffd7911d
2 changed files with 19 additions and 1 deletions

10
src/objects/ground.js Normal file
View File

@@ -0,0 +1,10 @@
//ground
import * as THREE from 'three';
export function createGround() {
const geometry = new THREE.PlaneGeometry(10, 10);
const material = new THREE.MeshBasicMaterial({ color: 0xa3c973 });
const plane = new THREE.Mesh(geometry, material);
return plane;
}