three-gpu-pathtracer 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.module.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ShaderMaterial, NoBlending, Vector2, WebGLRenderTarget, FloatType, RGBAFormat, NearestFilter, NormalBlending, Color, BufferAttribute, Mesh, BufferGeometry, PerspectiveCamera, Camera, SpotLight, RectAreaLight, Spherical, DataTexture, EquirectangularReflectionMapping, RepeatWrapping, ClampToEdgeWrapping, LinearFilter, Vector3, DoubleSide, BackSide, FrontSide, WebGLArrayRenderTarget, UnsignedByteType, MeshBasicMaterial, NoToneMapping, Source, HalfFloatType, DataUtils, RedFormat, Matrix4, Quaternion, Loader, MathUtils, FileLoader, PMREMGenerator, Vector4, DataArrayTexture } from 'three';
|
|
2
|
-
import { FullScreenQuad
|
|
3
|
-
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass';
|
|
2
|
+
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass.js';
|
|
4
3
|
import { StaticGeometryGenerator, SAH, MeshBVH, FloatVertexAttributeTexture, MeshBVHUniformStruct, UIntVertexAttributeTexture, shaderStructs, shaderIntersectFunction } from 'three-mesh-bvh';
|
|
5
4
|
import { mergeVertices, mergeBufferGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
6
5
|
|
|
@@ -636,8 +635,8 @@ class PathTracingRenderer {
|
|
|
636
635
|
|
|
637
636
|
this._renderer = renderer;
|
|
638
637
|
this._alpha = false;
|
|
639
|
-
this._fsQuad = new FullScreenQuad
|
|
640
|
-
this._blendQuad = new FullScreenQuad
|
|
638
|
+
this._fsQuad = new FullScreenQuad( null );
|
|
639
|
+
this._blendQuad = new FullScreenQuad( new BlendMaterial() );
|
|
641
640
|
this._task = null;
|
|
642
641
|
this._currentTile = 0;
|
|
643
642
|
|
|
@@ -2014,7 +2013,7 @@ class RenderTarget2DArray extends WebGLArrayRenderTarget {
|
|
|
2014
2013
|
|
|
2015
2014
|
};
|
|
2016
2015
|
|
|
2017
|
-
const fsQuad = new FullScreenQuad
|
|
2016
|
+
const fsQuad = new FullScreenQuad( new MeshBasicMaterial() );
|
|
2018
2017
|
this.fsQuad = fsQuad;
|
|
2019
2018
|
|
|
2020
2019
|
}
|
|
@@ -2917,7 +2916,7 @@ class IESProfilesTexture extends WebGLArrayRenderTarget {
|
|
|
2917
2916
|
|
|
2918
2917
|
};
|
|
2919
2918
|
|
|
2920
|
-
const fsQuad = new FullScreenQuad
|
|
2919
|
+
const fsQuad = new FullScreenQuad( new MeshBasicMaterial() );
|
|
2921
2920
|
this.fsQuad = fsQuad;
|
|
2922
2921
|
|
|
2923
2922
|
this.iesLoader = new IESLoader();
|
|
@@ -3399,7 +3398,7 @@ class BlurredEnvMapGenerator {
|
|
|
3399
3398
|
|
|
3400
3399
|
this.renderer = renderer;
|
|
3401
3400
|
this.pmremGenerator = new PMREMGenerator( renderer );
|
|
3402
|
-
this.copyQuad = new FullScreenQuad
|
|
3401
|
+
this.copyQuad = new FullScreenQuad( new PMREMCopyMaterial() );
|
|
3403
3402
|
this.renderTarget = new WebGLRenderTarget( 1, 1, { type: FloatType, format: RGBAFormat } );
|
|
3404
3403
|
|
|
3405
3404
|
}
|