November 2017
Beginner
294 pages
6h 55m
English
From AmbientLight to DirectionalLight, we are moving from the abstract to the slightly less abstract. A DirectionalLight is really there to take the place of the Sun. The sun's rays are always parallel to each other; in the same way, the DirectionalLight doesn't spread out like a light that's located closer would.
Here is a DirectionalLight and no AmbientLight:

The code is as follows:
<DirectionalLight intensity={.9} style={{ transform: [{ rotateZ: 35 }] }}/>
Read now
Unlock full access