@threepipe/webgi-plugins 0.5.6 → 0.5.8
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/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -7
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/extras/AdvancedGroundPlugin.d.ts +1 -1
- package/dist/plugins/extras/AdvancedGroundPlugin.d.ts.map +1 -1
- package/dist/utils/Reflector2.d.ts +4 -5
- package/dist/utils/Reflector2.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +7 -5
- package/tsconfig.json +2 -2
|
@@ -19,7 +19,7 @@ export declare class AdvancedGroundPlugin extends BaseGroundPlugin {
|
|
|
19
19
|
*/
|
|
20
20
|
bakeShadows(): void;
|
|
21
21
|
constructor();
|
|
22
|
-
protected _createMesh(mesh?: Mesh2<IGeometry & PlaneGeometry, IMaterial>): Reflector2<IGeometry<import('three').NormalBufferAttributes, import('
|
|
22
|
+
protected _createMesh(mesh?: Mesh2<IGeometry & PlaneGeometry, IMaterial>): Reflector2<IGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap> & PlaneGeometry>;
|
|
23
23
|
_mesh: Reflector2<IGeometry & PlaneGeometry>;
|
|
24
24
|
onAdded(viewer: ThreeViewer): void;
|
|
25
25
|
protected _postFrame(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedGroundPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/extras/AdvancedGroundPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAGhB,SAAS,EACT,SAAS,EACT,MAAM,EACN,cAAc,EAGd,KAAK,EAOL,WAAW,EACX,cAAc,EAKd,KAAK,EAAE,aAAa,EACvB,MAAM,WAAW,CAAA;AAElB,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,4B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AAW;IAI3B,SAAS,CAAC,UAAU;IASpB,SAAS,CAAC,UAAU;IAMpB,QAAQ,CAAC,MAAM,EAAE,WAAW;IAK5B,SAAS,CAAC,eAAe;IAiBzB,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,GAAG,aAAa,CAAC,GAAG,KAAK,CAAC,gBAAgB,GAAG,aAAa,EAAE,MAAM,CAAC;IAMlI,gBAAgB,aAEf;IAEM,OAAO,IAAI,IAAI;IAoBtB,SAAS,CAAC,iBAAiB;IAkB3B,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI;IAM5C,SAAS,CAAC,gBAAgB;IAqB1B,QAAQ,EAAE,cAAc,CAAA;IACxB,SAAS,CAAC,cAAc,IAAI,CAAC,cAAc,GAAG,CAAC,MAAM,cAAc,GAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IAiIxF,iBAAiB,EAAE,OAAO,CAAA;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,6BAAuB,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BufferGeometry2, IMaterial, Matrix4, Mesh2, PhysicalMaterial, Texture, ValOrFunc, Vector2, WebGLRenderTarget } from 'threepipe';
|
|
2
|
-
import { IShaderPropertiesUpdater } from 'threepipe/dist/materials/MaterialExtension';
|
|
1
|
+
import { BufferGeometry2, IMaterial, IShaderPropertiesUpdater, Matrix4, Mesh2, PhysicalMaterial, Texture, ValOrFunc, Vector2, WebGLRenderTarget } from 'threepipe';
|
|
3
2
|
export declare class Reflector2<TG extends BufferGeometry2 = BufferGeometry2> extends Mesh2<TG, PhysicalMaterial> {
|
|
4
3
|
type: string;
|
|
5
4
|
readonly isReflector2 = true;
|
|
@@ -12,7 +11,7 @@ export declare class Reflector2<TG extends BufferGeometry2 = BufferGeometry2> ex
|
|
|
12
11
|
transparentReflectionBackground: boolean;
|
|
13
12
|
private _updateExtension;
|
|
14
13
|
constructor(geometry: TG, renderTarget: ValOrFunc<WebGLRenderTarget | undefined>, clipBias: number | undefined, material: PhysicalMaterial);
|
|
15
|
-
getRenderTarget(): ValOrFunc<WebGLRenderTarget<Texture<import('
|
|
14
|
+
getRenderTarget(): ValOrFunc<WebGLRenderTarget<Texture<import('three').TextureEventMap>> | undefined>;
|
|
16
15
|
readonly materialExtension: {
|
|
17
16
|
extraUniforms: {
|
|
18
17
|
tRefDiffuse: {
|
|
@@ -35,11 +34,11 @@ export declare class Reflector2<TG extends BufferGeometry2 = BufferGeometry2> ex
|
|
|
35
34
|
USE_UV: string;
|
|
36
35
|
};
|
|
37
36
|
updaters: IShaderPropertiesUpdater[] | (() => IShaderPropertiesUpdater[]);
|
|
38
|
-
shaderExtender: (shader: import('
|
|
37
|
+
shaderExtender: (shader: import('three').WebGLProgramParametersWithUniforms, _material: IMaterial<import('threepipe').IMaterialEventMap>, _renderer: import('three').WebGLRenderer) => void;
|
|
39
38
|
parsVertexSnippet: () => "" | "\n\t\tuniform mat4 refTextureMatrix;\n\t\tvarying vec4 vRefUv;\n";
|
|
40
39
|
parsFragmentSnippet: () => string;
|
|
41
40
|
computeCacheKey: (material: IMaterial) => string;
|
|
42
|
-
onObjectRender: (_object: import('
|
|
41
|
+
onObjectRender: (_object: import('three').Object3D<import('three').Object3DEventMap>, material: IMaterial<import('threepipe').IMaterialEventMap>) => void;
|
|
43
42
|
isCompatible: (material: IMaterial<import('threepipe').IMaterialEventMap>) => true;
|
|
44
43
|
setDirty: () => void | undefined;
|
|
45
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reflector2.d.ts","sourceRoot":"","sources":["../../src/utils/Reflector2.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,SAAS,
|
|
1
|
+
{"version":3,"file":"Reflector2.d.ts","sourceRoot":"","sources":["../../src/utils/Reflector2.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,SAAS,EACT,wBAAwB,EAIxB,OAAO,EACP,KAAK,EAGL,gBAAgB,EAGhB,OAAO,EACP,SAAS,EACT,OAAO,EAGP,iBAAiB,EACpB,MAAM,WAAW,CAAA;AAIlB,qBAAa,UAAU,CAAC,EAAE,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,KAAK,CAAC,EAAE,EAAE,gBAAgB,CAAC;IAC9F,IAAI,SAAc;IACzB,SAAgB,YAAY,QAAO;IACnC,OAAO,CAAC,aAAa,CAAwC;IAE7D,SAAgB,aAAa,EAAE,OAAO,CAAA;IAEtC,OAAO,CAAC,gBAAgB;IAcjB,OAAO,UAAO;IAGd,qBAAqB,UAAO;IAE5B,2BAA2B,UAAO;IAClC,+BAA+B,UAAO;IAE7C,OAAO,CAAC,gBAAgB;gBAKZ,QAAQ,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,CAAC,iBAAiB,GAAC,SAAS,CAAC,EAAE,QAAQ,oBAAI,EAAE,QAAQ,EAAE,gBAAgB;IAwLxH,eAAe;IAIf,QAAQ,CAAC,iBAAiB;;;uBAGW,OAAO,GAAC,IAAI;;;;;;;;;;;;;;;;;;kBAU7B,wBAAwB,EAAE,GAAG,CAAC,MAAM,wBAAwB,EAAE,CAAC;;;;oCAgCnD,SAAS;;;;MAaZ;CAChC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.5.
|
|
1
|
+
export declare const VERSION = "0.5.8";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threepipe/webgi-plugins",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "WebGi - Realistic Rendering Plugins for ThreePipe.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -35,12 +35,14 @@
|
|
|
35
35
|
"author": "repalash <palash@shaders.app> (https://repalash.com)",
|
|
36
36
|
"license": "SEE LICENSE IN LICENSE",
|
|
37
37
|
"bugs": {
|
|
38
|
-
"url": "https://github.com/repalash/threepipe
|
|
38
|
+
"url": "https://github.com/repalash/threepipe/issues"
|
|
39
39
|
},
|
|
40
|
-
"homepage": "https://
|
|
40
|
+
"homepage": "https://webgi.dev/",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"
|
|
43
|
-
|
|
42
|
+
"threepipe": "^0.2.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"threepipe": "^0.2.0"
|
|
44
46
|
},
|
|
45
47
|
"browserslist": [
|
|
46
48
|
"defaults"
|
package/tsconfig.json
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"noUnusedParameters": true,
|
|
16
16
|
"removeComments": false,
|
|
17
17
|
"preserveConstEnums": true,
|
|
18
|
-
"moduleResolution": "
|
|
18
|
+
"moduleResolution": "bundler",
|
|
19
19
|
"emitDecoratorMetadata": false,
|
|
20
|
-
"sourceMap":
|
|
20
|
+
"sourceMap": false,
|
|
21
21
|
"target": "ES2020",
|
|
22
22
|
"strictNullChecks": true,
|
|
23
23
|
"skipLibCheck": true,
|