mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-23 05:57:57 +01:00
41 lines
867 B
HTML
41 lines
867 B
HTML
|
<!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] → [page:Light] →
|
||
|
|
||
|
<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>
|