Fast moving clouds with transparency and shadows

This commit is contained in:
Joshua Seigler 2018-10-12 02:13:57 -04:00
parent 9dc521e39a
commit 8721b90d84
11 changed files with 88 additions and 111 deletions

View file

@ -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);