@types/three 0.143.0 → 0.144.0

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 (206) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/controls/FirstPersonControls.d.ts +4 -1
  3. three/examples/jsm/csm/CSM.d.ts +1 -1
  4. three/examples/jsm/environments/RoomEnvironment.d.ts +1 -0
  5. three/examples/jsm/interactive/SelectionHelper.d.ts +1 -3
  6. three/examples/jsm/libs/stats.module.d.ts +1 -1
  7. three/examples/jsm/loaders/TIFFLoader.d.ts +16 -0
  8. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +17 -0
  9. three/examples/jsm/math/ColorConverter.d.ts +0 -2
  10. three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -0
  11. three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -2
  12. three/examples/jsm/misc/Volume.d.ts +1 -1
  13. three/examples/jsm/modifiers/CurveModifier.d.ts +6 -6
  14. three/examples/jsm/nodes/Nodes.d.ts +216 -0
  15. three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
  16. three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
  17. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +11 -0
  18. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
  19. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
  20. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
  21. three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
  22. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
  23. three/examples/jsm/nodes/accessors/NormalNode.d.ts +17 -0
  24. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
  25. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
  26. three/examples/jsm/nodes/accessors/PositionNode.d.ts +19 -0
  27. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
  28. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
  29. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
  30. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
  31. three/examples/jsm/nodes/accessors/TextureNode.d.ts +12 -0
  32. three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
  33. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
  34. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
  35. three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
  36. three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
  37. three/examples/jsm/nodes/core/CodeNode.d.ts +16 -0
  38. three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
  39. three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
  40. three/examples/jsm/nodes/core/ExpressionNode.d.ts +7 -0
  41. three/examples/jsm/nodes/core/FunctionCallNode.d.ts +13 -0
  42. three/examples/jsm/nodes/core/FunctionNode.d.ts +17 -0
  43. three/examples/jsm/nodes/core/InputNode.d.ts +12 -0
  44. three/examples/jsm/nodes/core/InstanceIndexNode.d.ts +6 -0
  45. three/examples/jsm/nodes/core/Node.d.ts +31 -0
  46. three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
  47. three/examples/jsm/nodes/core/NodeBuilder.d.ts +134 -0
  48. three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
  49. three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
  50. three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
  51. three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
  52. three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
  53. three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
  54. three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
  55. three/examples/jsm/nodes/core/NodeUtils.d.ts +7 -0
  56. three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
  57. three/examples/jsm/nodes/core/NodeVary.d.ts +6 -0
  58. three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
  59. three/examples/jsm/nodes/core/TempNode.d.ts +8 -0
  60. three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
  61. three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
  62. three/examples/jsm/nodes/core/VaryNode.d.ts +8 -0
  63. three/examples/jsm/nodes/core/constants.d.ts +77 -0
  64. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
  65. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +15 -0
  66. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
  67. three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
  68. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
  69. three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
  70. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
  71. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
  72. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
  73. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
  74. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
  75. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
  76. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
  77. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
  78. three/examples/jsm/nodes/functions/light/getDistanceAttenuation.d.ts +5 -0
  79. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
  80. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
  81. three/examples/jsm/nodes/geometry/RangeNode.d.ts +12 -0
  82. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
  83. three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
  84. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
  85. three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
  86. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
  87. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
  88. three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
  89. three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
  90. three/examples/jsm/nodes/lighting/PunctualLightNode.d.ts +12 -0
  91. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +21 -0
  92. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
  93. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +11 -0
  94. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +16 -0
  95. three/examples/jsm/nodes/materials/Materials.d.ts +17 -0
  96. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +19 -0
  97. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -0
  98. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +27 -0
  99. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +22 -0
  100. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
  101. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
  102. three/examples/jsm/nodes/materialx/functions/lib/mx_hsv.d.ts +4 -0
  103. three/examples/jsm/nodes/materialx/functions/lib/mx_noise.d.ts +6 -0
  104. three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
  105. three/examples/jsm/nodes/math/MathNode.d.ts +116 -0
  106. three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
  107. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
  108. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +157 -0
  109. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +285 -0
  110. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +128 -0
  111. three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
  112. three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
  113. three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
  114. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
  115. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +7 -0
  116. three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
  117. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
  118. three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
  119. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
  120. three/examples/jsm/nodes/utils/TimerNode.d.ts +14 -0
  121. three/examples/jsm/objects/ReflectorForSSRPass.d.ts +4 -4
  122. three/examples/jsm/postprocessing/SSRPass.d.ts +3 -3
  123. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +17 -0
  124. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +56 -0
  125. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
  126. three/examples/jsm/shaders/AfterimageShader.d.ts +4 -4
  127. three/examples/jsm/shaders/BleachBypassShader.d.ts +3 -3
  128. three/examples/jsm/shaders/BlendShader.d.ts +5 -5
  129. three/examples/jsm/shaders/BokehShader.d.ts +9 -9
  130. three/examples/jsm/shaders/BokehShader2.d.ts +26 -26
  131. three/examples/jsm/shaders/BrightnessContrastShader.d.ts +4 -4
  132. three/examples/jsm/shaders/ColorCorrectionShader.d.ts +5 -5
  133. three/examples/jsm/shaders/ColorifyShader.d.ts +3 -3
  134. three/examples/jsm/shaders/ConvolutionShader.d.ts +4 -4
  135. three/examples/jsm/shaders/CopyShader.d.ts +3 -3
  136. three/examples/jsm/shaders/DOFMipMapShader.d.ts +5 -5
  137. three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +9 -9
  138. three/examples/jsm/shaders/DigitalGlitch.d.ts +12 -12
  139. three/examples/jsm/shaders/DotScreenShader.d.ts +6 -6
  140. three/examples/jsm/shaders/FXAAShader.d.ts +3 -3
  141. three/examples/jsm/shaders/FilmShader.d.ts +7 -7
  142. three/examples/jsm/shaders/FocusShader.d.ts +6 -6
  143. three/examples/jsm/shaders/FreiChenShader.d.ts +3 -3
  144. three/examples/jsm/shaders/GammaCorrectionShader.d.ts +2 -2
  145. three/examples/jsm/shaders/GodRaysShader.d.ts +12 -12
  146. three/examples/jsm/shaders/HalftoneShader.d.ts +14 -14
  147. three/examples/jsm/shaders/HorizontalBlurShader.d.ts +3 -3
  148. three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +4 -4
  149. three/examples/jsm/shaders/HueSaturationShader.d.ts +4 -4
  150. three/examples/jsm/shaders/KaleidoShader.d.ts +4 -4
  151. three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +6 -6
  152. three/examples/jsm/shaders/LuminosityShader.d.ts +2 -2
  153. three/examples/jsm/shaders/MirrorShader.d.ts +3 -3
  154. three/examples/jsm/shaders/NormalMapShader.d.ts +5 -5
  155. three/examples/jsm/shaders/PixelShader.d.ts +4 -4
  156. three/examples/jsm/shaders/RGBShiftShader.d.ts +4 -4
  157. three/examples/jsm/shaders/SAOShader.d.ts +15 -15
  158. three/examples/jsm/shaders/SMAAShader.d.ts +10 -10
  159. three/examples/jsm/shaders/SSAOShader.d.ts +19 -19
  160. three/examples/jsm/shaders/SepiaShader.d.ts +3 -3
  161. three/examples/jsm/shaders/SobelOperatorShader.d.ts +3 -3
  162. three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +30 -30
  163. three/examples/jsm/shaders/TechnicolorShader.d.ts +2 -2
  164. three/examples/jsm/shaders/ToneMapShader.d.ts +7 -7
  165. three/examples/jsm/shaders/ToonShader.d.ts +26 -26
  166. three/examples/jsm/shaders/TriangleBlurShader.d.ts +3 -3
  167. three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +3 -3
  168. three/examples/jsm/shaders/VerticalBlurShader.d.ts +3 -3
  169. three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +4 -4
  170. three/examples/jsm/shaders/VignetteShader.d.ts +4 -4
  171. three/examples/jsm/shaders/VolumeShader.d.ts +7 -7
  172. three/examples/jsm/shaders/WaterRefractionShader.d.ts +6 -6
  173. three/examples/jsm/utils/CameraUtils.d.ts +1 -1
  174. three/index.d.ts +2 -2
  175. three/package.json +3 -3
  176. three/src/Three.d.ts +1 -1
  177. three/src/constants.d.ts +0 -5
  178. three/src/core/BufferAttribute.d.ts +0 -4
  179. three/src/core/BufferGeometry.d.ts +0 -1
  180. three/src/core/Object3D.d.ts +2 -1
  181. three/src/extras/core/ShapePath.d.ts +1 -1
  182. three/src/geometries/BoxGeometry.d.ts +0 -2
  183. three/src/geometries/CapsuleGeometry.d.ts +0 -2
  184. three/src/geometries/CircleGeometry.d.ts +0 -2
  185. three/src/geometries/ConeGeometry.d.ts +0 -2
  186. three/src/geometries/CylinderGeometry.d.ts +0 -2
  187. three/src/geometries/DodecahedronGeometry.d.ts +0 -2
  188. three/src/geometries/ExtrudeGeometry.d.ts +0 -2
  189. three/src/geometries/IcosahedronGeometry.d.ts +0 -2
  190. three/src/geometries/LatheGeometry.d.ts +0 -2
  191. three/src/geometries/OctahedronGeometry.d.ts +0 -2
  192. three/src/geometries/PlaneGeometry.d.ts +0 -2
  193. three/src/geometries/PolyhedronGeometry.d.ts +0 -2
  194. three/src/geometries/RingGeometry.d.ts +0 -2
  195. three/src/geometries/ShapeGeometry.d.ts +0 -2
  196. three/src/geometries/SphereGeometry.d.ts +0 -2
  197. three/src/geometries/TetrahedronGeometry.d.ts +0 -2
  198. three/src/geometries/TorusGeometry.d.ts +0 -2
  199. three/src/geometries/TorusKnotGeometry.d.ts +0 -2
  200. three/src/geometries/TubeGeometry.d.ts +0 -2
  201. three/src/materials/LineBasicMaterial.d.ts +7 -0
  202. three/src/materials/MeshLambertMaterial.d.ts +52 -1
  203. three/src/materials/MeshPhysicalMaterial.d.ts +5 -0
  204. three/src/materials/ShaderMaterial.d.ts +1 -1
  205. three/src/math/Quaternion.d.ts +0 -5
  206. three/src/renderers/shaders/UniformsUtils.d.ts +0 -1
@@ -21,7 +21,7 @@ export interface ReflectorShader {
21
21
  fragmentShader: string;
22
22
  }
23
23
 
24
- export interface ReflectorOptions {
24
+ export interface ReflectorForSSRPassOptions {
25
25
  clipBias?: number | undefined;
26
26
  textureWidth?: number | undefined;
27
27
  textureHeight?: number | undefined;
@@ -30,9 +30,9 @@ export interface ReflectorOptions {
30
30
  shader?: ReflectorShader | undefined;
31
31
  }
32
32
 
33
- export class Reflector<TGeometry extends BufferGeometry = BufferGeometry> extends Mesh<TGeometry> {
33
+ export class ReflectorForSSRPass<TGeometry extends BufferGeometry = BufferGeometry> extends Mesh<TGeometry> {
34
34
  type: 'ReflectorForSSRPass';
35
- options: ReflectorOptions;
35
+ options: ReflectorForSSRPassOptions;
36
36
 
37
37
  static ReflectorShader: ReflectorShader;
38
38
 
@@ -49,7 +49,7 @@ export class Reflector<TGeometry extends BufferGeometry = BufferGeometry> extend
49
49
 
50
50
  renderTarget: WebGLRenderTarget;
51
51
 
52
- constructor(geometry: TGeometry, options: ReflectorOptions);
52
+ constructor(geometry: TGeometry, options: ReflectorForSSRPassOptions);
53
53
 
54
54
  doRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera) => void;
55
55
 
@@ -12,7 +12,7 @@ import {
12
12
  ColorRepresentation,
13
13
  } from '../../../src/Three';
14
14
  import { Pass, FullScreenQuad } from '../postprocessing/Pass';
15
- import { Reflector } from '../objects/ReflectorForSSRPass';
15
+ import { ReflectorForSSRPass } from '../objects/ReflectorForSSRPass';
16
16
 
17
17
  export interface SSRPassParams {
18
18
  renderer: WebGLRenderer;
@@ -23,7 +23,7 @@ export interface SSRPassParams {
23
23
  selects: Mesh[] | null;
24
24
  isPerspectiveCamera?: boolean | undefined;
25
25
  isBouncing?: boolean | undefined;
26
- groundReflector: Reflector | null;
26
+ groundReflector: ReflectorForSSRPass | null;
27
27
  }
28
28
 
29
29
  export class SSRPass extends Pass {
@@ -33,7 +33,7 @@ export class SSRPass extends Pass {
33
33
  renderer: WebGLRenderer;
34
34
  scene: Scene;
35
35
  camera: Camera;
36
- groundReflector: Reflector | null;
36
+ groundReflector: ReflectorForSSRPass | null;
37
37
  opacity: number;
38
38
  output: number;
39
39
  maxDistance: number;
@@ -0,0 +1,17 @@
1
+ import Node from '../../../nodes/core/Node';
2
+
3
+ export interface SlotNodeParameters<TNode extends Node = Node> {
4
+ node?: TNode;
5
+ nodeType?: string;
6
+ source?: string | null;
7
+ target?: string | null;
8
+ }
9
+
10
+ export default class SlotNode<TNode extends Node = Node> extends Node {
11
+ inclusionType: 'replace';
12
+ node: TNode | null;
13
+ source: null;
14
+ target: null;
15
+
16
+ constructor(params: SlotNodeParameters<TNode>);
17
+ }
@@ -0,0 +1,56 @@
1
+ import NodeBuilder from '../../../nodes/core/NodeBuilder';
2
+ import { Texture, TextureEncoding, Renderer, Object3D } from '../../../../../src/Three';
3
+ import Node from '../../../nodes/core/Node';
4
+ import SlotNode from './SlotNode';
5
+ import { NodeShaderStageOption } from '../../../nodes/core/constants';
6
+
7
+ export class WebGLNodeBuilder extends NodeBuilder {
8
+ constructor(
9
+ object: Object3D,
10
+ renderer: Renderer,
11
+ shader: { uniforms: any; vertexShader: any; fragmentShader: any },
12
+ );
13
+
14
+ addSlot(shaderStage: NodeShaderStageOption, slotNode: SlotNode): Node;
15
+ addFlowCode(code: string): string;
16
+
17
+ getTexture(textureProperty: string, uvSnippet: string): string;
18
+ getTextureBias(textureProperty: string, uvSnippet: string, biasSnippet: string): string;
19
+
20
+ getTextureLevel(
21
+ textureProperty: string,
22
+ uvSnippet: string,
23
+ biasSnippet: string,
24
+ shaderStage?: NodeShaderStageOption,
25
+ ): string;
26
+ getCubeTexture(texturePropert: string, uvSnippet: string, shaderStage?: NodeShaderStageOption): string;
27
+
28
+ getCubeTextureLevel(
29
+ textureProperty: string,
30
+ uvSnippet: string,
31
+ biasSnippet: string,
32
+ shaderStage?: NodeShaderStageOption,
33
+ ): string;
34
+
35
+ getCubeTextureBias(textureProperty: string, uvSnippet: string, biasSnippet: string): string;
36
+ getUniforms(shaderStage: string): string;
37
+
38
+ getAttributes(shaderStage: string): string;
39
+
40
+ getVarys(shaderStage: string): string;
41
+
42
+ addCodeAfterCode(shaderStage: string, snippet: string, code: string): string;
43
+ addCodeAfterInclude(shaderStage: string, snippet: string, code: string): string;
44
+
45
+ replaceCode(shaderStage: string, source: string, target: string): void;
46
+ parseInclude(shaderStage: string, ...includes: string[]): void;
47
+ getTextureEncodingFromMap(map: Texture): TextureEncoding;
48
+
49
+ getInstanceIndex(): string;
50
+ getFrontFacing(): string;
51
+
52
+ buildCode(): void;
53
+ build(): this;
54
+
55
+ getSlot(shaderStage: string, name: string): Node;
56
+ }
@@ -0,0 +1,3 @@
1
+ import NodeFrame from '../../../nodes/core/NodeFrame';
2
+
3
+ export const nodeFrame: NodeFrame;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const AfterimageShader: {
4
4
  uniforms: {
5
- damp: Uniform;
6
- tOld: Uniform;
7
- tNew: Uniform;
5
+ damp: IUniform;
6
+ tOld: IUniform;
7
+ tNew: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const BleachBypassShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- opacity: Uniform;
5
+ tDiffuse: IUniform;
6
+ opacity: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,11 +1,11 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const BlendShader: {
4
4
  uniforms: {
5
- tDiffuse1: Uniform;
6
- tDiffuse2: Uniform;
7
- mixRatio: Uniform;
8
- opacity: Uniform;
5
+ tDiffuse1: IUniform;
6
+ tDiffuse2: IUniform;
7
+ mixRatio: IUniform;
8
+ opacity: IUniform;
9
9
  };
10
10
  vertexShader: string;
11
11
  fragmentShader: string;
@@ -1,4 +1,4 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const BokehShader: {
4
4
  defines: {
@@ -6,14 +6,14 @@ export const BokehShader: {
6
6
  PERSPECTIVE_CAMERA: number;
7
7
  };
8
8
  uniforms: {
9
- tColor: Uniform;
10
- tDepth: Uniform;
11
- focus: Uniform;
12
- aspect: Uniform;
13
- aperture: Uniform;
14
- maxblur: Uniform;
15
- nearClip: Uniform;
16
- farClip: Uniform;
9
+ tColor: IUniform;
10
+ tDepth: IUniform;
11
+ focus: IUniform;
12
+ aspect: IUniform;
13
+ aperture: IUniform;
14
+ maxblur: IUniform;
15
+ nearClip: IUniform;
16
+ farClip: IUniform;
17
17
  };
18
18
  vertexShader: string;
19
19
  fragmentShader: string;
@@ -1,29 +1,29 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export interface BokehShaderUniforms {
4
- textureWidth: Uniform;
5
- textureHeight: Uniform;
6
- focalDepth: Uniform;
7
- focalLength: Uniform;
8
- fstop: Uniform;
9
- tColor: Uniform;
10
- tDepth: Uniform;
11
- maxblur: Uniform;
12
- showFocus: Uniform;
13
- manualdof: Uniform;
14
- vignetting: Uniform;
15
- depthblur: Uniform;
16
- threshold: Uniform;
17
- gain: Uniform;
18
- bias: Uniform;
19
- fringe: Uniform;
20
- znear: Uniform;
21
- zfar: Uniform;
22
- noise: Uniform;
23
- dithering: Uniform;
24
- pentagon: Uniform;
25
- shaderFocus: Uniform;
26
- focusCoords: Uniform;
4
+ textureWidth: IUniform;
5
+ textureHeight: IUniform;
6
+ focalDepth: IUniform;
7
+ focalLength: IUniform;
8
+ fstop: IUniform;
9
+ tColor: IUniform;
10
+ tDepth: IUniform;
11
+ maxblur: IUniform;
12
+ showFocus: IUniform;
13
+ manualdof: IUniform;
14
+ vignetting: IUniform;
15
+ depthblur: IUniform;
16
+ threshold: IUniform;
17
+ gain: IUniform;
18
+ bias: IUniform;
19
+ fringe: IUniform;
20
+ znear: IUniform;
21
+ zfar: IUniform;
22
+ noise: IUniform;
23
+ dithering: IUniform;
24
+ pentagon: IUniform;
25
+ shaderFocus: IUniform;
26
+ focusCoords: IUniform;
27
27
  }
28
28
 
29
29
  export const BokehShader: {
@@ -34,8 +34,8 @@ export const BokehShader: {
34
34
 
35
35
  export const BokehDepthShader: {
36
36
  uniforms: {
37
- mNear: Uniform;
38
- mFar: Uniform;
37
+ mNear: IUniform;
38
+ mFar: IUniform;
39
39
  };
40
40
  vertexShader: string;
41
41
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const BrightnessContrastShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- brightness: Uniform;
7
- contrast: Uniform;
5
+ tDiffuse: IUniform;
6
+ brightness: IUniform;
7
+ contrast: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,11 +1,11 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const ColorCorrectionShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- powRGB: Uniform;
7
- mulRGB: Uniform;
8
- addRGB: Uniform;
5
+ tDiffuse: IUniform;
6
+ powRGB: IUniform;
7
+ mulRGB: IUniform;
8
+ addRGB: IUniform;
9
9
  };
10
10
  vertexShader: string;
11
11
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const ColorifyShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- color: Uniform;
5
+ tDiffuse: IUniform;
6
+ color: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,4 +1,4 @@
1
- import { Uniform } from '../../../src/core/Uniform';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const ConvolutionShader: {
4
4
  defines: {
@@ -6,9 +6,9 @@ export const ConvolutionShader: {
6
6
  KERNEL_SIZE_INT: string;
7
7
  };
8
8
  uniforms: {
9
- tDiffuse: Uniform;
10
- uImageIncrement: Uniform;
11
- cKernel: Uniform;
9
+ tDiffuse: IUniform;
10
+ uImageIncrement: IUniform;
11
+ cKernel: IUniform;
12
12
  };
13
13
  vertexShader: string;
14
14
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const CopyShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- opacity: Uniform;
5
+ tDiffuse: IUniform;
6
+ opacity: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,11 +1,11 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const DOFMipMapShader: {
4
4
  uniforms: {
5
- tColor: Uniform;
6
- tDepth: Uniform;
7
- focus: Uniform;
8
- maxblur: Uniform;
5
+ tColor: IUniform;
6
+ tDepth: IUniform;
7
+ focus: IUniform;
8
+ maxblur: IUniform;
9
9
  };
10
10
  vertexShader: string;
11
11
  fragmentShader: string;
@@ -1,4 +1,4 @@
1
- import { Uniform, Vector2, Material } from '../../../src/Three';
1
+ import { IUniform, Vector2, Material } from '../../../src/Three';
2
2
 
3
3
  export const DepthLimitedBlurShader: {
4
4
  defines: {
@@ -7,14 +7,14 @@ export const DepthLimitedBlurShader: {
7
7
  PERSPECTIVE_CAMERA: number;
8
8
  };
9
9
  uniforms: {
10
- tDiffuse: Uniform;
11
- size: Uniform;
12
- sampleUvOffsets: Uniform;
13
- sampleWeights: Uniform;
14
- tDepth: Uniform;
15
- cameraNear: Uniform;
16
- cameraFar: Uniform;
17
- depthCutoff: Uniform;
10
+ tDiffuse: IUniform;
11
+ size: IUniform;
12
+ sampleUvOffsets: IUniform;
13
+ sampleWeights: IUniform;
14
+ tDepth: IUniform;
15
+ cameraNear: IUniform;
16
+ cameraFar: IUniform;
17
+ depthCutoff: IUniform;
18
18
  };
19
19
  vertexShader: string;
20
20
  fragmentShader: string;
@@ -1,18 +1,18 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const DigitalGlitch: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- tDisp: Uniform;
7
- byp: Uniform;
8
- amount: Uniform;
9
- angle: Uniform;
10
- seed: Uniform;
11
- seed_x: Uniform;
12
- seed_y: Uniform;
13
- distortion_x: Uniform;
14
- distortion_y: Uniform;
15
- col_s: Uniform;
5
+ tDiffuse: IUniform;
6
+ tDisp: IUniform;
7
+ byp: IUniform;
8
+ amount: IUniform;
9
+ angle: IUniform;
10
+ seed: IUniform;
11
+ seed_x: IUniform;
12
+ seed_y: IUniform;
13
+ distortion_x: IUniform;
14
+ distortion_y: IUniform;
15
+ col_s: IUniform;
16
16
  };
17
17
  vertexShader: string;
18
18
  fragmentShader: string;
@@ -1,12 +1,12 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const DotScreenShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- tSize: Uniform;
7
- center: Uniform;
8
- angle: Uniform;
9
- scale: Uniform;
5
+ tDiffuse: IUniform;
6
+ tSize: IUniform;
7
+ center: IUniform;
8
+ angle: IUniform;
9
+ scale: IUniform;
10
10
  };
11
11
  vertexShader: string;
12
12
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const FXAAShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- resolution: Uniform;
5
+ tDiffuse: IUniform;
6
+ resolution: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,13 +1,13 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const FilmShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- time: Uniform;
7
- nIntensity: Uniform;
8
- sIntensity: Uniform;
9
- sCount: Uniform;
10
- grayscale: Uniform;
5
+ tDiffuse: IUniform;
6
+ time: IUniform;
7
+ nIntensity: IUniform;
8
+ sIntensity: IUniform;
9
+ sCount: IUniform;
10
+ grayscale: IUniform;
11
11
  };
12
12
  vertexShader: string;
13
13
  fragmentShader: string;
@@ -1,12 +1,12 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const FocusShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- screenWidth: Uniform;
7
- screenHeight: Uniform;
8
- sampleDistance: Uniform;
9
- waveFactor: Uniform;
5
+ tDiffuse: IUniform;
6
+ screenWidth: IUniform;
7
+ screenHeight: IUniform;
8
+ sampleDistance: IUniform;
9
+ waveFactor: IUniform;
10
10
  };
11
11
  vertexShader: string;
12
12
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const FreiChenShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- aspect: Uniform;
5
+ tDiffuse: IUniform;
6
+ aspect: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,8 +1,8 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const GammaCorrectionShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
5
+ tDiffuse: IUniform;
6
6
  };
7
7
  vertexShader: string;
8
8
  fragmentShader: string;
@@ -1,8 +1,8 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const GodRaysDepthMaskShader: {
4
4
  uniforms: {
5
- tInput: Uniform;
5
+ tInput: IUniform;
6
6
  };
7
7
  vertexShader: string;
8
8
  fragmentShader: string;
@@ -10,9 +10,9 @@ export const GodRaysDepthMaskShader: {
10
10
 
11
11
  export const GodRaysGenerateShader: {
12
12
  uniforms: {
13
- tInput: Uniform;
14
- fStepSize: Uniform;
15
- vSunPositionScreenSpace: Uniform;
13
+ tInput: IUniform;
14
+ fStepSize: IUniform;
15
+ vSunPositionScreenSpace: IUniform;
16
16
  };
17
17
  vertexShader: string;
18
18
  fragmentShader: string;
@@ -20,9 +20,9 @@ export const GodRaysGenerateShader: {
20
20
 
21
21
  export const GodRaysCombineShader: {
22
22
  uniforms: {
23
- tColors: Uniform;
24
- tGodRays: Uniform;
25
- fGodRayIntensity: Uniform;
23
+ tColors: IUniform;
24
+ tGodRays: IUniform;
25
+ fGodRayIntensity: IUniform;
26
26
  };
27
27
  vertexShader: string;
28
28
  fragmentShader: string;
@@ -30,10 +30,10 @@ export const GodRaysCombineShader: {
30
30
 
31
31
  export const GodRaysFakeSunShader: {
32
32
  uniforms: {
33
- vSunPositionScreenSpace: Uniform;
34
- fAspect: Uniform;
35
- sunColor: Uniform;
36
- bgColor: Uniform;
33
+ vSunPositionScreenSpace: IUniform;
34
+ fAspect: IUniform;
35
+ sunColor: IUniform;
36
+ bgColor: IUniform;
37
37
  };
38
38
  vertexShader: string;
39
39
  fragmentShader: string;
@@ -1,20 +1,20 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const HalftoneShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- shape: Uniform;
7
- radius: Uniform;
8
- rotateR: Uniform;
9
- rotateG: Uniform;
10
- rotateB: Uniform;
11
- scatter: Uniform;
12
- width: Uniform;
13
- height: Uniform;
14
- blending: Uniform;
15
- blendingMode: Uniform;
16
- greyscale: Uniform;
17
- disable: Uniform;
5
+ tDiffuse: IUniform;
6
+ shape: IUniform;
7
+ radius: IUniform;
8
+ rotateR: IUniform;
9
+ rotateG: IUniform;
10
+ rotateB: IUniform;
11
+ scatter: IUniform;
12
+ width: IUniform;
13
+ height: IUniform;
14
+ blending: IUniform;
15
+ blendingMode: IUniform;
16
+ greyscale: IUniform;
17
+ disable: IUniform;
18
18
  };
19
19
  vertexShader: string;
20
20
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const HorizontalBlurShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- h: Uniform;
5
+ tDiffuse: IUniform;
6
+ h: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const HorizontalTiltShiftShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- h: Uniform;
7
- r: Uniform;
5
+ tDiffuse: IUniform;
6
+ h: IUniform;
7
+ r: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;