@types/three 0.141.0 → 0.143.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.
Files changed (133) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
  3. three/examples/jsm/controls/FlyControls.d.ts +1 -1
  4. three/examples/jsm/controls/OrbitControls.d.ts +3 -3
  5. three/examples/jsm/curves/NURBSUtils.d.ts +18 -20
  6. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
  7. three/examples/jsm/nodes/Nodes.d.ts +215 -0
  8. three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
  9. three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
  10. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +11 -0
  11. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
  12. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
  13. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
  14. three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
  15. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
  16. three/examples/jsm/nodes/accessors/NormalNode.d.ts +17 -0
  17. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
  18. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
  19. three/examples/jsm/nodes/accessors/PositionNode.d.ts +19 -0
  20. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
  21. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
  22. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
  23. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
  24. three/examples/jsm/nodes/accessors/TextureNode.d.ts +12 -0
  25. three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
  26. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
  27. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
  28. three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
  29. three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
  30. three/examples/jsm/nodes/core/CodeNode.d.ts +16 -0
  31. three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
  32. three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
  33. three/examples/jsm/nodes/core/ExpressionNode.d.ts +7 -0
  34. three/examples/jsm/nodes/core/FunctionCallNode.d.ts +13 -0
  35. three/examples/jsm/nodes/core/FunctionNode.d.ts +15 -0
  36. three/examples/jsm/nodes/core/InputNode.d.ts +12 -0
  37. three/examples/jsm/nodes/core/InstanceIndexNode.d.ts +6 -0
  38. three/examples/jsm/nodes/core/Node.d.ts +30 -0
  39. three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
  40. three/examples/jsm/nodes/core/NodeBuilder.d.ts +134 -0
  41. three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
  42. three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
  43. three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
  44. three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
  45. three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
  46. three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
  47. three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
  48. three/examples/jsm/nodes/core/NodeUtils.d.ts +6 -0
  49. three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
  50. three/examples/jsm/nodes/core/NodeVary.d.ts +6 -0
  51. three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
  52. three/examples/jsm/nodes/core/TempNode.d.ts +8 -0
  53. three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
  54. three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
  55. three/examples/jsm/nodes/core/VaryNode.d.ts +8 -0
  56. three/examples/jsm/nodes/core/constants.d.ts +77 -0
  57. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
  58. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +15 -0
  59. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
  60. three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
  61. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
  62. three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
  63. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
  64. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
  65. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
  66. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
  67. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
  68. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
  69. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
  70. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
  71. three/examples/jsm/nodes/functions/light/getDistanceAttenuation.d.ts +5 -0
  72. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
  73. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
  74. three/examples/jsm/nodes/geometry/RangeNode.d.ts +12 -0
  75. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
  76. three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
  77. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
  78. three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
  79. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
  80. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
  81. three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
  82. three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
  83. three/examples/jsm/nodes/lighting/PunctualLightNode.d.ts +12 -0
  84. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +21 -0
  85. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
  86. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +11 -0
  87. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +16 -0
  88. three/examples/jsm/nodes/materials/Materials.d.ts +15 -0
  89. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +19 -0
  90. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +27 -0
  91. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +22 -0
  92. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
  93. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
  94. three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
  95. three/examples/jsm/nodes/math/MathNode.d.ts +116 -0
  96. three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
  97. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
  98. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +155 -0
  99. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +267 -0
  100. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +128 -0
  101. three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
  102. three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
  103. three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
  104. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
  105. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +7 -0
  106. three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
  107. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
  108. three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
  109. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
  110. three/examples/jsm/nodes/utils/TimerNode.d.ts +14 -0
  111. three/examples/jsm/objects/GroundProjectedEnv.d.ts +13 -0
  112. three/examples/jsm/postprocessing/SAOPass.d.ts +1 -1
  113. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +5 -0
  114. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +56 -0
  115. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
  116. three/examples/jsm/renderers/webgl/nodes/WebGLPhysicalContextNode.d.ts +13 -0
  117. three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +10 -0
  118. three/examples/jsm/textures/FlakesTexture.d.ts +3 -0
  119. three/examples/jsm/utils/CameraUtils.d.ts +7 -9
  120. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +3 -5
  121. three/examples/jsm/utils/GeometryUtils.d.ts +23 -25
  122. three/examples/jsm/utils/SkeletonUtils.d.ts +16 -22
  123. three/index.d.ts +2 -2
  124. three/package.json +3 -3
  125. three/src/Three.d.ts +4 -1
  126. three/src/animation/AnimationUtils.d.ts +32 -34
  127. three/src/audio/AudioContext.d.ts +1 -1
  128. three/src/core/UniformsGroup.d.ts +27 -0
  129. three/src/extras/DataUtils.d.ts +2 -4
  130. three/src/renderers/WebGLRenderer.d.ts +0 -5
  131. three/src/renderers/shaders/UniformsUtils.d.ts +6 -1
  132. three/src/renderers/webgl/WebGLUniformsGroups.d.ts +17 -0
  133. three/examples/jsm/shaders/SSRrShader.d.ts +0 -48
@@ -1,27 +1,25 @@
1
1
  import { Vector3 } from '../../../src/Three';
2
2
 
3
- export namespace GeometryUtils {
4
- function hilbert2D(
5
- center?: Vector3,
6
- size?: number,
7
- iterations?: number,
8
- v0?: number,
9
- v1?: number,
10
- v2?: number,
11
- v3?: number,
12
- ): Vector3[];
13
- function hilbert3D(
14
- center?: Vector3,
15
- size?: number,
16
- iterations?: number,
17
- v0?: number,
18
- v1?: number,
19
- v2?: number,
20
- v3?: number,
21
- v4?: number,
22
- v5?: number,
23
- v6?: number,
24
- v7?: number,
25
- ): Vector3[];
26
- function gosper(size?: number): number[];
27
- }
3
+ export function hilbert2D(
4
+ center?: Vector3,
5
+ size?: number,
6
+ iterations?: number,
7
+ v0?: number,
8
+ v1?: number,
9
+ v2?: number,
10
+ v3?: number,
11
+ ): Vector3[];
12
+ export function hilbert3D(
13
+ center?: Vector3,
14
+ size?: number,
15
+ iterations?: number,
16
+ v0?: number,
17
+ v1?: number,
18
+ v2?: number,
19
+ v3?: number,
20
+ v4?: number,
21
+ v5?: number,
22
+ v6?: number,
23
+ v7?: number,
24
+ ): Vector3[];
25
+ export function gosper(size?: number): number[];
@@ -1,34 +1,28 @@
1
1
  import { AnimationClip, Bone, Matrix4, Object3D, Skeleton, SkeletonHelper } from '../../../src/Three';
2
2
 
3
- export namespace SkeletonUtils {
4
- export function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): void;
3
+ export function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): void;
5
4
 
6
- export function retargetClip(
7
- target: Skeleton | Object3D,
8
- source: Skeleton | Object3D,
9
- clip: AnimationClip,
10
- options: {},
11
- ): AnimationClip;
5
+ export function retargetClip(
6
+ target: Skeleton | Object3D,
7
+ source: Skeleton | Object3D,
8
+ clip: AnimationClip,
9
+ options: {},
10
+ ): AnimationClip;
12
11
 
13
- export function getHelperFromSkeleton(skeleton: Skeleton): SkeletonHelper;
12
+ export function getHelperFromSkeleton(skeleton: Skeleton): SkeletonHelper;
14
13
 
15
- export function getSkeletonOffsets(
16
- target: Object3D | Skeleton,
17
- source: Object3D | Skeleton,
18
- options: {},
19
- ): Matrix4[];
14
+ export function getSkeletonOffsets(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): Matrix4[];
20
15
 
21
- export function renameBones(skeleton: Skeleton, names: {}): any;
16
+ export function renameBones(skeleton: Skeleton, names: {}): any;
22
17
 
23
- export function getBones(skeleton: Skeleton | Bone[]): Bone[];
18
+ export function getBones(skeleton: Skeleton | Bone[]): Bone[];
24
19
 
25
- export function getBoneByName(name: string, skeleton: Skeleton): Bone;
20
+ export function getBoneByName(name: string, skeleton: Skeleton): Bone;
26
21
 
27
- export function getNearestBone(bone: Bone, names: {}): Bone;
22
+ export function getNearestBone(bone: Bone, names: {}): Bone;
28
23
 
29
- export function findBoneTrackData(name: string, tracks: any[]): {};
24
+ export function findBoneTrackData(name: string, tracks: any[]): {};
30
25
 
31
- export function getEqualsBonesNames(skeleton: Skeleton, targetSkeleton: Skeleton): string[];
26
+ export function getEqualsBonesNames(skeleton: Skeleton, targetSkeleton: Skeleton): string[];
32
27
 
33
- export function clone(source: Object3D): Object3D;
34
- }
28
+ export function clone(source: Object3D): Object3D;
three/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- // Type definitions for three 0.141
1
+ // Type definitions for three 0.143
2
2
  // Project: https://threejs.org/
3
3
  // Definitions by: Josh Ellis <https://github.com/joshuaellis>
4
4
  // Nathan Bierema <https://github.com/Methuselah96>
5
5
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
- // Minimum TypeScript Version: 3.6
6
+ // Minimum TypeScript Version: 4.0
7
7
 
8
8
  // To update three.js type definition, please make changes to the repository at:
9
9
  // https://github.com/three-types/three-ts-types.
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.141.0",
3
+ "version": "0.143.1",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "dependencies": {
28
28
  "@types/webxr": "*"
29
29
  },
30
- "typesPublisherContentHash": "f2cb59cf51914baac1f0032481e5702cdf38ace7e83148c7e0faefc44ed80745",
31
- "typeScriptVersion": "3.9"
30
+ "typesPublisherContentHash": "c802edb2e06dd446a771cc7178b90024d1fbf05ab8f4a9ea2b7cf7daea5c8fa2",
31
+ "typeScriptVersion": "4.0"
32
32
  }
three/src/Three.d.ts CHANGED
@@ -16,7 +16,8 @@ export * from './animation/tracks/BooleanKeyframeTrack';
16
16
  export * from './animation/PropertyMixer';
17
17
  export * from './animation/PropertyBinding';
18
18
  export * from './animation/KeyframeTrack';
19
- export * from './animation/AnimationUtils';
19
+ import * as AnimationUtils from './animation/AnimationUtils';
20
+ export { AnimationUtils };
20
21
  export * from './animation/AnimationObjectGroup';
21
22
  export * from './animation/AnimationMixer';
22
23
  export * from './animation/AnimationClip';
@@ -42,6 +43,7 @@ export * from './cameras/Camera';
42
43
  * Core
43
44
  */
44
45
  export * from './core/Uniform';
46
+ export * from './core/UniformsGroup';
45
47
  export * from './core/InstancedBufferGeometry';
46
48
  export * from './core/BufferGeometry';
47
49
  export * from './core/InterleavedBufferAttribute';
@@ -207,6 +209,7 @@ export * from './renderers/webgl/WebGLShadowMap';
207
209
  export * from './renderers/webgl/WebGLState';
208
210
  export * from './renderers/webgl/WebGLTextures';
209
211
  export * from './renderers/webgl/WebGLUniforms';
212
+ export * from './renderers/webgl/WebGLUniformsGroups';
210
213
  export * from './renderers/webxr/WebXRController';
211
214
  export * from './renderers/webxr/WebXRManager';
212
215
  export { WebGLUtils } from './renderers/webgl/WebGLUtils.js';
@@ -1,38 +1,36 @@
1
1
  import { AnimationClip } from './AnimationClip';
2
2
 
3
- export namespace AnimationUtils {
4
- function arraySlice(array: any, from: number, to: number): any;
5
- function convertArray(array: any, type: any, forceClone: boolean): any;
6
- function isTypedArray(object: any): boolean;
7
- function getKeyframeOrder(times: number[]): number[];
8
- function sortedArray(values: any[], stride: number, order: number[]): any[];
9
- function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;
3
+ export function arraySlice(array: any, from: number, to: number): any;
4
+ export function convertArray(array: any, type: any, forceClone: boolean): any;
5
+ export function isTypedArray(object: any): boolean;
6
+ export function getKeyframeOrder(times: number[]): number[];
7
+ export function sortedArray(values: any[], stride: number, order: number[]): any[];
8
+ export function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;
10
9
 
11
- /**
12
- * @param sourceClip
13
- * @param name
14
- * @param startFrame
15
- * @param endFrame
16
- * @param [fps=30]
17
- */
18
- function subclip(
19
- sourceClip: AnimationClip,
20
- name: string,
21
- startFrame: number,
22
- endFrame: number,
23
- fps?: number,
24
- ): AnimationClip;
10
+ /**
11
+ * @param sourceClip
12
+ * @param name
13
+ * @param startFrame
14
+ * @param endFrame
15
+ * @param [fps=30]
16
+ */
17
+ export function subclip(
18
+ sourceClip: AnimationClip,
19
+ name: string,
20
+ startFrame: number,
21
+ endFrame: number,
22
+ fps?: number,
23
+ ): AnimationClip;
25
24
 
26
- /**
27
- * @param targetClip
28
- * @param [referenceFrame=0]
29
- * @param [referenceClip=targetClip]
30
- * @param [fps=30]
31
- */
32
- function makeClipAdditive(
33
- targetClip: AnimationClip,
34
- referenceFrame?: number,
35
- referenceClip?: AnimationClip,
36
- fps?: number,
37
- ): AnimationClip;
38
- }
25
+ /**
26
+ * @param targetClip
27
+ * @param [referenceFrame=0]
28
+ * @param [referenceClip=targetClip]
29
+ * @param [fps=30]
30
+ */
31
+ export function makeClipAdditive(
32
+ targetClip: AnimationClip,
33
+ referenceFrame?: number,
34
+ referenceClip?: AnimationClip,
35
+ fps?: number,
36
+ ): AnimationClip;
@@ -4,5 +4,5 @@
4
4
  export namespace AudioContext {
5
5
  function getContext(): AudioContext;
6
6
 
7
- function setContext(): void;
7
+ function setContext(context: AudioContext): void;
8
8
  }
@@ -0,0 +1,27 @@
1
+ import { EventDispatcher } from './EventDispatcher';
2
+ import { Uniform } from './Uniform';
3
+
4
+ import { Usage } from '../constants';
5
+
6
+ export class UniformsGroup extends EventDispatcher {
7
+ isUniformsGroup: true;
8
+ id: number;
9
+ usage: Usage;
10
+ uniforms: Uniform[];
11
+
12
+ constructor();
13
+
14
+ add(uniform: Uniform): this;
15
+
16
+ remove(uniform: Uniform): this;
17
+
18
+ setName(name: string): this;
19
+
20
+ setUsage(value: Usage): this;
21
+
22
+ dispose(): this;
23
+
24
+ copy(source: UniformsGroup): this;
25
+
26
+ clone(): UniformsGroup;
27
+ }
@@ -1,4 +1,2 @@
1
- export namespace DataUtils {
2
- function toHalfFloat(val: number): number;
3
- function fromHalfFloat(val: number): number;
4
- }
1
+ export function toHalfFloat(val: number): number;
2
+ export function fromHalfFloat(val: number): number;
@@ -127,11 +127,6 @@ export class WebGLRenderer implements Renderer {
127
127
  */
128
128
  domElement: HTMLCanvasElement;
129
129
 
130
- /**
131
- * The HTML5 Canvas's 'webgl' context obtained from the canvas where the renderer will draw.
132
- */
133
- context: WebGLRenderingContext;
134
-
135
130
  /**
136
131
  * Defines whether the renderer should automatically clear its output before rendering.
137
132
  * @default true
@@ -1,5 +1,10 @@
1
+ import { Uniform } from '../../core/Uniform';
2
+ import { UniformsGroup } from '../../core/UniformsGroup';
3
+
1
4
  export function cloneUniforms(uniforms_src: any): any;
2
- export function mergeUniforms(uniforms: any[]): any;
5
+ export function mergeUniforms(uniforms: any): any;
6
+
7
+ export function cloneUniformsGroups(src: UniformsGroup[]): UniformsGroup[];
3
8
 
4
9
  export namespace UniformsUtils {
5
10
  export { mergeUniforms as merge, cloneUniforms as clone };
@@ -0,0 +1,17 @@
1
+ import { UniformsGroup } from '../../core/UniformsGroup';
2
+
3
+ import { WebGLCapabilities } from './WebGLCapabilities';
4
+ import { WebGLInfo } from './WebGLInfo';
5
+ import { WebGLProgram } from './WebGLProgram';
6
+ import { WebGLState } from './WebGLState';
7
+
8
+ export function WebGLUniformsGroups(
9
+ gl: WebGLRenderingContext,
10
+ info: WebGLInfo,
11
+ capabilities: WebGLCapabilities,
12
+ state: WebGLState,
13
+ ): {
14
+ dispose: () => void;
15
+ update: (uniformsGroup: UniformsGroup, program: WebGLProgram) => void;
16
+ bind: (uniformsGroup: UniformsGroup, program: WebGLProgram) => void;
17
+ };
@@ -1,48 +0,0 @@
1
- import { Matrix4, Vector2, IUniform, Texture } from '../../../src/Three';
2
-
3
- export interface SSRrShader {
4
- defines: {
5
- MAX_STEP: number;
6
- PERSPECTIVE_CAMERA: boolean;
7
- SPECULAR: boolean;
8
- FILL_HOLE: boolean;
9
- INFINITE_THICK: boolean;
10
- };
11
-
12
- uniforms: {
13
- tDiffuse: IUniform<Texture | null>;
14
- tSpecular: IUniform<Texture | null>;
15
- tNormalSelects: IUniform<Texture | null>;
16
- tRefractive: IUniform<Texture | null>;
17
- tDepthSelects: IUniform<Texture | null>;
18
- cameraNear: IUniform<number | null>;
19
- cameraFar: IUniform<number | null>;
20
- resolution: IUniform<Vector2>;
21
- cameraProjectionMatrix: IUniform<Matrix4>;
22
- cameraInverseProjectionMatrix: IUniform<Matrix4>;
23
- ior: IUniform<number>;
24
- cameraRange: IUniform<number>;
25
- maxDistance: IUniform<number>;
26
- surfDist: IUniform<number>;
27
- };
28
-
29
- vertexShader: string;
30
-
31
- fragmentShader: string;
32
- }
33
-
34
- export interface SSRrDepthShader {
35
- defines: {
36
- PERSPECTIVE_CAMERA: number;
37
- };
38
-
39
- uniforms: {
40
- tDepth: IUniform<Texture | null>;
41
- cameraNear: IUniform<number | null>;
42
- cameraFar: IUniform<number | null>;
43
- };
44
-
45
- vertexShader: string;
46
-
47
- fragmentShader: string;
48
- }