|
|
@@ -60,7 +60,7 @@
|
|
|
import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
|
|
|
import { LDrawLoader } from 'three/addons/loaders/LDrawLoader.js';
|
|
|
import { LDrawUtils } from 'three/addons/utils/LDrawUtils.js';
|
|
|
-
|
|
|
+ import { LDrawConditionalLineMaterial } from 'three/addons/materials/LDrawConditionalLineMaterial.js';
|
|
|
import { WebGLPathTracer, BlurredEnvMapGenerator, GradientEquirectTexture } from 'three-gpu-pathtracer';
|
|
|
|
|
|
let progressBarDiv, samplesEl;
|
|
|
@@ -156,6 +156,7 @@
|
|
|
// only smooth when not rendering with flat colors to improve processing time
|
|
|
const ldrawPromise =
|
|
|
new LDrawLoader()
|
|
|
+ .setConditionalLineMaterial( LDrawConditionalLineMaterial )
|
|
|
.setPath( 'models/ldraw/officialLibrary/' )
|
|
|
.loadAsync( 'models/7140-1-X-wingFighter.mpd_Packed.mpd', onProgress )
|
|
|
.then( function ( legoGroup ) {
|