You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<base href="../../../" />
|
|
<script src="page.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="page.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<h1>[name]</h1>
|
|
|
|
<p class="desc">
|
|
Utility class for creating instances of [page:LightProbe].
|
|
</p>
|
|
|
|
<h2>Examples</h2>
|
|
|
|
<p>
|
|
[example:webgl_lightprobe WebGL / light probe ]<br />
|
|
[example:webgl_lightprobe_cubecamera WebGL / light probe / cube camera ]
|
|
</p>
|
|
|
|
<h2>Static Methods</h2>
|
|
|
|
<h3>[method:LightProbe fromCubeTexture] ( [param:CubeTexture cubeTexture] )</h3>
|
|
<p>
|
|
Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube texture.
|
|
</p>
|
|
|
|
<h3>[method:LightProbe fromCubeRenderTarget] ( [param:WebGLRenderer renderer], [param:WebGLCubeRenderTarget cubeRenderTarget] )</h3>
|
|
<p>
|
|
Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube render target.
|
|
</p>
|
|
<p>
|
|
The [page:Texture.format format] of the cube render target must be set to `RGBA`.
|
|
</p>
|
|
|
|
<h2>Source</h2>
|
|
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/LightProbeGenerator.js examples/jsm/lights/LightProbeGenerator.js]
|
|
</p>
|
|
</body>
|
|
</html>
|
|
|