Doodle3D-Slicer/three.js-master/docs/api/lights/AmbientLight.html
2015-06-12 15:58:26 +02:00

41 lines
867 B
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="../../list.js"></script>
<script src="../../page.js"></script>
<link type="text/css" rel="stylesheet" href="../../page.css" />
</head>
<body>
[page:Object3D] &rarr; [page:Light] &rarr;
<h1>[name]</h1>
<div class="desc">
This light's color gets applied to all the objects in the scene globally.
</div>
<h2>Example</h2>
<code>var light = new THREE.AmbientLight( 0x404040 ); // soft white light
scene.add( light );</code>
<h2>Constructor</h2>
<h3>[name]( [page:Integer hex] )</h3>
<div>
[page:Integer hex] — Numeric value of the RGB component of the color.
</div>
<div>
This creates an Ambientlight with a color.
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>