Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
'use strict';

const REVISION = '185dev';
const REVISION = '185';

/**
* Represents mouse buttons and interaction types in context of controls.
Expand Down
2 changes: 1 addition & 1 deletion build/three.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2010-2026 Three.js Authors
* SPDX-License-Identifier: MIT
*/
const REVISION = '185dev';
const REVISION = '185';

/**
* Represents mouse buttons and interaction types in context of controls.
Expand Down
2 changes: 1 addition & 1 deletion build/three.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion devtools/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"activeTab",
"webNavigation"
]
}
}
42 changes: 42 additions & 0 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,7 @@ The following documentation pages are available in markdown format at `https://t
- [Earcut](https://threejs.org/docs/pages/Earcut.html.md)
- [EdgeSplitModifier](https://threejs.org/docs/pages/EdgeSplitModifier.html.md)
- [EffectComposer](https://threejs.org/docs/pages/EffectComposer.html.md)
- [EnvMapCDFGenerator](https://threejs.org/docs/pages/EnvMapCDFGenerator.html.md)
- [EventDispatcher](https://threejs.org/docs/pages/EventDispatcher.html.md)
- [FaceFrame](https://threejs.org/docs/pages/FaceFrame.html.md)
- [FigureEightPolynomialKnot](https://threejs.org/docs/pages/FigureEightPolynomialKnot.html.md)
Expand All @@ -2002,6 +2003,7 @@ The following documentation pages are available in markdown format at `https://t
- [Gyroscope](https://threejs.org/docs/pages/Gyroscope.html.md)
- [HTMLMesh](https://threejs.org/docs/pages/HTMLMesh.html.md)
- [ImageUtils](https://threejs.org/docs/pages/ImageUtils.html.md)
- [ImportanceSampledEnvironment](https://threejs.org/docs/pages/ImportanceSampledEnvironment.html.md)
- [ImprovedNoise](https://threejs.org/docs/pages/ImprovedNoise.html.md)
- [IndirectStorageBufferAttribute](https://threejs.org/docs/pages/IndirectStorageBufferAttribute.html.md)
- [Info](https://threejs.org/docs/pages/Info.html.md)
Expand Down Expand Up @@ -2626,6 +2628,7 @@ The following documentation pages are available in markdown format at `https://t
- [RTTNode](https://threejs.org/docs/pages/RTTNode.html.md)
- [RangeNode](https://threejs.org/docs/pages/RangeNode.html.md)
- [RectAreaLightNode](https://threejs.org/docs/pages/RectAreaLightNode.html.md)
- [RecurrentDenoiseNode](https://threejs.org/docs/pages/RecurrentDenoiseNode.html.md)
- [ReferenceBaseNode](https://threejs.org/docs/pages/ReferenceBaseNode.html.md)
- [ReferenceElementNode](https://threejs.org/docs/pages/ReferenceElementNode.html.md)
- [ReferenceNode](https://threejs.org/docs/pages/ReferenceNode.html.md)
Expand Down Expand Up @@ -2659,6 +2662,7 @@ The following documentation pages are available in markdown format at `https://t
- [TAAUNode](https://threejs.org/docs/pages/TAAUNode.html.md)
- [TRAANode](https://threejs.org/docs/pages/TRAANode.html.md)
- [TempNode](https://threejs.org/docs/pages/TempNode.html.md)
- [TemporalReprojectNode](https://threejs.org/docs/pages/TemporalReprojectNode.html.md)
- [Texture3DNode](https://threejs.org/docs/pages/Texture3DNode.html.md)
- [TextureNode](https://threejs.org/docs/pages/TextureNode.html.md)
- [TextureSizeNode](https://threejs.org/docs/pages/TextureSizeNode.html.md)
Expand Down
34 changes: 34 additions & 0 deletions docs/pages/EnvMapCDFGenerator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>EnvMapCDFGenerator - Three.js Docs</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="../scripts/highlight.min.js"></script>
<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
<h1 translate="no">EnvMapCDFGenerator</h1>
<section>
<header>
<div class="class-description"><p>Precomputes marginal and conditional CDF textures from an equirectangular HDR environment map
for luminance importance sampling.</p></div>
</header>
<article>
<div class="container-overview">
<h2>Constructor</h2>
<h3 class="name name-method" id="EnvMapCDFGenerator" translate="no">new <a href="#EnvMapCDFGenerator">EnvMapCDFGenerator</a><span class="signature">()</span> </h3>
<div class="method">
</div>
</div>
<h2 class="subsection-title">Source</h2>
<p>
<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/ImportanceSampledEnvironment.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/display/ImportanceSampledEnvironment.js</a>
</p>
</article>
</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions docs/pages/EnvMapCDFGenerator.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EnvMapCDFGenerator

Precomputes marginal and conditional CDF textures from an equirectangular HDR environment map for luminance importance sampling.

## Constructor

### new EnvMapCDFGenerator()

## Source

[examples/jsm/tsl/display/ImportanceSampledEnvironment.js](https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/ImportanceSampledEnvironment.js)
267 changes: 267 additions & 0 deletions docs/pages/ImportanceSampledEnvironment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ImportanceSampledEnvironment - Three.js Docs</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="../scripts/highlight.min.js"></script>
<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
<h1 translate="no">ImportanceSampledEnvironment</h1>
<section>
<header>
<div class="class-description"><p>Manages a preprocessed HDR environment map (CDF textures, uniforms) and exposes
TSL helpers for BRDF-direction lookups and MIS importance sampling.</p></div>
</header>
<article>
<div class="container-overview">
<h2>Constructor</h2>
<h3 class="name name-method" id="ImportanceSampledEnvironment" translate="no">new <a href="#ImportanceSampledEnvironment">ImportanceSampledEnvironment</a><span class="signature">( importanceSampling : <span class="param-type">boolean</span> )</span> </h3>
<div class="method">
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">importanceSampling</strong>
</td>
<td class="description last">
<p>When <code>true</code>, builds luminance CDF tables and enables MIS env sampling.</p>
<p>Default is <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://github.com/gkjohnson/three-gpu-pathtracer" target="_blank" rel="noopener">https://github.com/gkjohnson/three-gpu-pathtracer</a></li>
</ul>
</dd>
</dl>
</div>
</div>
<h2 class="subsection-title">Methods</h2>
<h3 class="name name-method" id="sampleEnvironmentBRDF" translate="no">.<a href="#sampleEnvironmentBRDF">sampleEnvironmentBRDF</a><span class="signature">( params : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
<div class="method">
<div class="description">
<p>Environment reflection for a screen-space miss using only the BRDF / reflected-ray direction.</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">params</strong>
</td>
<td class="description last">
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">cameraWorldMatrix</strong>
</td>
<td class="description last">
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">viewReflectDir</strong>
</td>
<td class="description last">
<p>View-space GGX-sampled reflected ray.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">N</strong>
</td>
<td class="description last">
<p>View-space shading normal.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">V</strong>
</td>
<td class="description last">
<p>View-space direction to camera.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">alpha</strong>
</td>
<td class="description last">
<p>GGX roughness (alpha).</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">f0</strong>
</td>
<td class="description last">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="sampleEnvironmentMIS" translate="no">.<a href="#sampleEnvironmentMIS">sampleEnvironmentMIS</a><span class="signature">( params : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
<div class="method">
<div class="description">
<p>Environment reflection for a screen-space miss, estimated with multiple importance
sampling (MIS) between the BRDF / reflected-ray direction and the env-luminance CDF
direction. Both techniques use consistent solid-angle PDFs (<code>D·G1(N·V)/(4·N·V)</code>), so
the power heuristic is unbiased. Adapted from three-gpu-pathtracer.</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">params</strong>
</td>
<td class="description last">
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">cameraWorldMatrix</strong>
</td>
<td class="description last">
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">viewReflectDir</strong>
</td>
<td class="description last">
<p>View-space GGX-sampled reflected ray.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">N</strong>
</td>
<td class="description last">
<p>View-space shading normal.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">V</strong>
</td>
<td class="description last">
<p>View-space direction to camera.</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">alpha</strong>
</td>
<td class="description last">
<p>GGX roughness (alpha).</p>
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">f0</strong>
</td>
<td class="description last">
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">Xi2</strong>
</td>
<td class="description last">
<p>Second blue-noise sample (zw used for the CDF).</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://github.com/gkjohnson/three-gpu-pathtracer" target="_blank" rel="noopener">https://github.com/gkjohnson/three-gpu-pathtracer</a></li>
</ul>
</dd>
</dl>
</div>
<h3 class="name name-method" id="sampleReflect" translate="no">.<a href="#sampleReflect">sampleReflect</a><span class="signature">( params : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
<div class="method">
<div class="description">
<p>Simple environment lookup along the reflected direction (no MIS).</p>
</div>
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">params</strong>
</td>
<td class="description last">
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">cameraWorldMatrix</strong>
</td>
<td class="description last">
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">viewReflectDir</strong>
</td>
<td class="description last">
</td>
</tr>
<tr>
<td class="name">
<strong translate="no">sampleWeight</strong>
</td>
<td class="description last">
<p>Optional radiance scale (defaults to 1).</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<h3 class="name name-method" id="updateFrom" translate="no">.<a href="#updateFrom">updateFrom</a><span class="signature">( hdr : <span class="param-type"><a href="Texture.html">Texture</a></span> )</span> </h3>
<div class="method">
<table class="params">
<tbody>
<tr>
<td class="name">
<strong translate="no">hdr</strong>
</td>
<td class="description last">
<p>Equirectangular HDR environment map.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2 class="subsection-title">Source</h2>
<p>
<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/ImportanceSampledEnvironment.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/display/ImportanceSampledEnvironment.js</a>
</p>
</article>
</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>
Loading
Loading