diff --git a/src/animation/Home.ts b/src/animation/Home.ts index 63728d5..b36ef0c 100644 --- a/src/animation/Home.ts +++ b/src/animation/Home.ts @@ -12,7 +12,7 @@ import Editor from "@/animation/components/Editor"; export let renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.PerspectiveCamera export let editor: Editor const clock = new THREE.Clock() -const objects: { [id: string]: THREE.Object3D } = {} +export const objects: { [id: string]: THREE.Object3D } = {} const updatable: IUpdatable[] = [] // //////////////////// @@ -127,8 +127,9 @@ function addLights(): void { objects.hemiLight = addHemiLight(scene) objects.dirLight = addDirLight(scene) - // objects.ground = addGround(scene) + objects.ground = addGround(scene) objects.sky = addSky(scene) + objects.ground.visible = false renderer.outputEncoding = THREE.sRGBEncoding renderer.shadowMap.enabled = true diff --git a/src/animation/components/Editor.ts b/src/animation/components/Editor.ts index cd96c35..d2c7ec0 100644 --- a/src/animation/components/Editor.ts +++ b/src/animation/components/Editor.ts @@ -38,7 +38,7 @@ export default class Editor implements IUpdatable this.scale -= direction / 10 this.hand.scale.set(this.scale, this.scale, this.scale) } - else this.z = minMax(this.z - direction, config.editor.zMin, config.editor.zMax) + else this.z = minMax(this.z - direction * 2, config.editor.zMin, config.editor.zMax) }, false) } diff --git a/src/views/NewHome.vue b/src/views/NewHome.vue index 5e4ffa5..7d72d39 100644 --- a/src/views/NewHome.vue +++ b/src/views/NewHome.vue @@ -14,12 +14,19 @@
- Colors
{{(i + 1) % 10}}
+ +
+ +
+ +
+ Light +
* - margin-right: 10px + + .color + margin-left: 5px + +#editor-controls > * + * + margin-left: 10px