mirror of
https://github.com/seigler/webgl-threejs-hello
synced 2025-07-27 01:36:14 +00:00
⚡ Fast moving clouds with transparency and shadows
This commit is contained in:
parent
9dc521e39a
commit
8721b90d84
11 changed files with 88 additions and 111 deletions
|
@ -3,8 +3,8 @@ import loop from 'js/core/Loop';
|
|||
import props from 'js/core/props';
|
||||
import Bean from 'js/components/Bean';
|
||||
import Ground from 'js/components/Ground';
|
||||
import Clouds from 'js/components/Clouds';
|
||||
import Light from 'js/components/Light';
|
||||
import { createLight, createHemisphereLight } from 'js/components/Light';
|
||||
|
||||
// ##
|
||||
// INIT
|
||||
|
@ -21,6 +21,10 @@ gui.close();
|
|||
|
||||
webgl.add(new Ground());
|
||||
|
||||
const clouds = new Clouds();
|
||||
webgl.add(clouds);
|
||||
loop.add(clouds.onUpdate);
|
||||
|
||||
const light = new Light();
|
||||
webgl.add(light);
|
||||
loop.add(light.onUpdate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue