You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="class-description"><p>A loader for the LDraw format.</p>
17
-
<p>[LDraw](https://ldraw.org/} (LEGO Draw) is an <ahref="https://ldraw.org/article/218.html)" target="_blank" rel="noopener">open format specification</a> from 'three/addons/loaders/LDrawLoader.js';</code></pre>
17
+
<p>[LDraw](https://ldraw.org/} (LEGO Draw) is an <ahref="https://ldraw.org/article/218.html" target="_blank" rel="noopener">open format specification</a>
18
+
for describing LEGO and other construction set 3D models.</p>
19
+
<p>An LDraw asset (a text file usually with extension .ldr, .dat or .txt) can describe just a single construction
20
+
piece, or an entire model. In the case of a model the LDraw file can reference other LDraw files, which are
21
+
loaded from a library path set with <code>setPartsLibraryPath</code>. You usually download the LDraw official parts library,
22
+
extract to a folder and point setPartsLibraryPath to it.</p>
23
+
<p>Library parts will be loaded by trial and error in subfolders 'parts', 'p' and 'models'. These file accesses
24
+
are not optimal for web environment, so a script tool has been made to pack an LDraw file with all its dependencies
25
+
into a single file, which loads much faster. See section 'Packing LDraw models'. The LDrawLoader example loads
26
+
several packed files. The official parts library is not included due to its large size.</p>
27
+
<p><code>LDrawLoader</code> supports the following extensions:</p>
28
+
<ul>
29
+
<li>!COLOUR: Color and surface finish declarations.</li>
<p><spantranslate="no">LDrawLoader</span> is an addon, and must be imported explicitly, see <ahref="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
44
+
<pre><codeclass="language-js">import { LDrawLoader } from 'three/addons/loaders/LDrawLoader.js';</code></pre>
Copy file name to clipboardExpand all lines: docs/pages/SkyMesh.html
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ <h1 translate="no">SkyMesh</h1>
15
15
<header>
16
16
<divclass="class-description"><p>Represents a skydome for scene backgrounds. Based on <ahref="https://www.researchgate.net/publication/220720443_A_Practical_Analytic_Model_for_Daylight" target="_blank" rel="noopener">A Practical Analytic Model for Daylight</a>
17
17
aka The Preetham Model, the de facto standard for analytical skydomes.</p>
18
-
<p>Note that this class can only be used with <ahref="WebGLRenderer.html">WebGLRenderer</a>.
19
-
When using <ahref="WebGPURenderer.html">WebGPURenderer</a>, use <ahref="SkyMesh.html">SkyMesh</a>.</p>
18
+
<p>Note that this class can only be used with <ahref="WebGPURenderer.html">WebGPURenderer</a>.
19
+
When using <ahref="WebGLRenderer.html">WebGLRenderer</a>, use <ahref="Sky.html">Sky</a>.</p>
0 commit comments