Added a rotating scene
To try
This commit is contained in:
10
src/objects/ground.js
Normal file
10
src/objects/ground.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user