angular-three-soba 1.11.0 → 1.11.1
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/esm2020/abstractions/lib/gizmo-helper/gizmo-helper.mjs +8 -3
- package/esm2020/abstractions/lib/text-3d/text-3d.mjs +1 -1
- package/esm2020/materials/lib/mesh-transmission-material/mesh-transmission-material.mjs +1 -4
- package/esm2020/performance/lib/detailed/detailed.mjs +6 -3
- package/esm2020/shaders/index.mjs +2 -1
- package/esm2020/shaders/lib/soft-shadow-material/soft-shadow-material.mjs +33 -0
- package/esm2020/staging/lib/accumulative-shadows/accumulative-shadows.mjs +7 -38
- package/esm2020/staging/lib/accumulative-shadows/randomized-lights.mjs +6 -6
- package/esm2020/staging/lib/caustics/caustics.mjs +19 -20
- package/esm2020/staging/lib/center/center.mjs +6 -6
- package/fesm2015/angular-three-soba-abstractions.mjs +7 -2
- package/fesm2015/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2015/angular-three-soba-materials.mjs +0 -3
- package/fesm2015/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2015/angular-three-soba-performance.mjs +5 -2
- package/fesm2015/angular-three-soba-performance.mjs.map +1 -1
- package/fesm2015/angular-three-soba-shaders.mjs +32 -1
- package/fesm2015/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2015/angular-three-soba-staging.mjs +34 -65
- package/fesm2015/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2020/angular-three-soba-abstractions.mjs +7 -2
- package/fesm2020/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2020/angular-three-soba-materials.mjs +0 -3
- package/fesm2020/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2020/angular-three-soba-performance.mjs +5 -2
- package/fesm2020/angular-three-soba-performance.mjs.map +1 -1
- package/fesm2020/angular-three-soba-shaders.mjs +32 -1
- package/fesm2020/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2020/angular-three-soba-staging.mjs +34 -65
- package/fesm2020/angular-three-soba-staging.mjs.map +1 -1
- package/materials/lib/mesh-transmission-material/mesh-transmission-material.d.ts +0 -1
- package/package.json +2 -3
- package/performance/lib/detailed/detailed.d.ts +2 -1
- package/plugin/package.json +1 -1
- package/shaders/index.d.ts +1 -0
- package/shaders/lib/soft-shadow-material/soft-shadow-material.d.ts +10 -0
- package/staging/lib/accumulative-shadows/accumulative-shadows.d.ts +2 -8
- package/staging/lib/accumulative-shadows/randomized-lights.d.ts +1 -1
- package/staging/lib/caustics/caustics.d.ts +0 -1
|
@@ -41,7 +41,6 @@ export declare class NgtsMeshTranmissionMaterial extends NgtRxStore {
|
|
|
41
41
|
readonly fboMainRef: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget>;
|
|
42
42
|
initialize(): void;
|
|
43
43
|
constructor();
|
|
44
|
-
ngOnInit(): void;
|
|
45
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshTranmissionMaterial, never>;
|
|
46
45
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshTranmissionMaterial, "ngts-mesh-transmission-material", never, { "materialRef": "materialRef"; "transmissionSampler": "transmissionSampler"; "backside": "backside"; "backsideThickness": "backsideThickness"; "resolution": "resolution"; "backsideResolution": "backsideResolution"; "samples": "samples"; "background": "background"; "transmission": "transmission"; "thickness": "thickness"; "roughness": "roughness"; "chromaticAberration": "chromaticAberration"; "anisotropy": "anisotropy"; "distortion": "distortion"; "distortionScale": "distortionScale"; "temporalDistortion": "temporalDistortion"; "buffer": "buffer"; "time": "time"; }, {}, never, never, true, never>;
|
|
47
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-three-soba",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -117,8 +117,7 @@
|
|
|
117
117
|
"troika-three-text": "^0.47.0",
|
|
118
118
|
"rxjs": "~7.8.0",
|
|
119
119
|
"@storybook/addons": "6.5.16",
|
|
120
|
-
"@storybook/theming": "6.5.16"
|
|
121
|
-
"@rx-angular/state": "^1.7.0"
|
|
120
|
+
"@storybook/theming": "6.5.16"
|
|
122
121
|
},
|
|
123
122
|
"dependencies": {
|
|
124
123
|
"@nrwl/devkit": "^15.0.0",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgtRxStore } from 'angular-three';
|
|
2
|
+
import { NgtBeforeRenderEvent, NgtRxStore } from 'angular-three';
|
|
3
3
|
import { LOD } from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NgtsDetailed extends NgtRxStore implements OnInit {
|
|
6
6
|
lodRef: import("angular-three").NgtInjectedRef<LOD>;
|
|
7
7
|
set distances(distances: number[]);
|
|
8
8
|
ngOnInit(): void;
|
|
9
|
+
onLODBeforeRender({ object, state }: NgtBeforeRenderEvent<THREE.LOD>): void;
|
|
9
10
|
private updateLodChildren;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsDetailed, never>;
|
|
11
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsDetailed, "ngts-detailed[distances]", never, { "lodRef": "lodRef"; "distances": "distances"; }, {}, never, ["*"], true, never>;
|
package/plugin/package.json
CHANGED
package/shaders/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export * from './lib/mesh-refraction-material/mesh-refraction-material';
|
|
|
9
9
|
export * from './lib/mesh-transmission-material/mesh-transmission-material';
|
|
10
10
|
export * from './lib/mesh-wobble-material/mesh-wobble-material';
|
|
11
11
|
export * from './lib/shader-material/shader-material';
|
|
12
|
+
export * from './lib/soft-shadow-material/soft-shadow-material';
|
|
12
13
|
export * from './lib/spot-light-material/spot-light-material';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export declare const SoftShadowMaterial: typeof THREE.ShaderMaterial & {
|
|
3
|
+
key: string;
|
|
4
|
+
};
|
|
5
|
+
export type SoftShadowMaterialInputs = {
|
|
6
|
+
map: THREE.Texture;
|
|
7
|
+
color?: THREE.ColorRepresentation;
|
|
8
|
+
alphaTest?: number;
|
|
9
|
+
blend?: number;
|
|
10
|
+
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { NgtRxStore } from 'angular-three';
|
|
3
|
+
import { SoftShadowMaterialInputs } from 'angular-three-soba/shaders';
|
|
3
4
|
import * as THREE from 'three';
|
|
4
5
|
import { ProgressiveLightMap } from './progressive-light-map';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
type SoftShadowMaterialInputs = {
|
|
7
|
-
map: THREE.Texture;
|
|
8
|
-
color?: THREE.ColorRepresentation;
|
|
9
|
-
alphaTest?: number;
|
|
10
|
-
blend?: number;
|
|
11
|
-
};
|
|
12
7
|
export type NgtsAccumulativeShadowsLightApi = {
|
|
13
8
|
update: () => void;
|
|
14
9
|
};
|
|
@@ -26,7 +21,7 @@ export declare const NGTS_ACCUMULATIVE_SHADOWS_API: InjectionToken<NgtsAccumulat
|
|
|
26
21
|
export declare class AccumulativeShadowsConsumer {
|
|
27
22
|
constructor();
|
|
28
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccumulativeShadowsConsumer, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccumulativeShadowsConsumer, "
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccumulativeShadowsConsumer, "[ngtsAccumulativeShadowsConsumer]", never, {}, {}, never, never, true, never>;
|
|
30
25
|
}
|
|
31
26
|
export declare class NgtsAccumulativeShadows extends NgtRxStore {
|
|
32
27
|
readonly nullTraverse: () => null;
|
|
@@ -61,4 +56,3 @@ export declare class NgtsAccumulativeShadows extends NgtRxStore {
|
|
|
61
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsAccumulativeShadows, never>;
|
|
62
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsAccumulativeShadows, "ngts-accumulative-shadows", never, { "frames": "frames"; "blend": "blend"; "limit": "limit"; "scale": "scale"; "temporal": "temporal"; "opacity": "opacity"; "alphaTest": "alphaTest"; "color": "color"; "colorBlend": "colorBlend"; "resolution": "resolution"; "toneMapped": "toneMapped"; }, {}, never, ["*"], true, never>;
|
|
63
58
|
}
|
|
64
|
-
export {};
|
|
@@ -7,7 +7,7 @@ export declare const NGTS_RANDOMIZED_LIGHTS_API: InjectionToken<NgtsAccumulative
|
|
|
7
7
|
export declare class RandomizedLightsConsumer {
|
|
8
8
|
constructor();
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<RandomizedLightsConsumer, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RandomizedLightsConsumer, "
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RandomizedLightsConsumer, "[ngtsRandomizedLightsConsumer]", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
12
12
|
export declare class NgtsRandomizedLights extends NgtRxStore {
|
|
13
13
|
lightsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
@@ -38,7 +38,6 @@ export declare class NgtsCaustics extends NgtRxStore implements OnInit {
|
|
|
38
38
|
readonly causticsTargetFbo: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget>;
|
|
39
39
|
readonly causticsTargetBFbo: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget>;
|
|
40
40
|
private readonly store;
|
|
41
|
-
private readonly cdr;
|
|
42
41
|
initialize(): void;
|
|
43
42
|
ngOnInit(): void;
|
|
44
43
|
private updateWorldMatrix;
|