@types/three
Advanced tools
Comparing version 0.143.2 to 0.144.0
@@ -25,5 +25,8 @@ import { Camera, Vector3 } from '../../../src/Three'; | ||
handleResize(): void; | ||
lookAt(x: number | Vector3, y: number, z: number): this; | ||
lookAt(x: Vector3): this; | ||
lookAt(x: number, y: number, z: number): this; | ||
update(delta: number): this; | ||
dispose(): void; | ||
} |
@@ -61,2 +61,2 @@ import { Camera, Vector3, DirectionalLight, Material, Vector2, Object3D } from '../../../src/Three'; | ||
import CSMFrustrum from './CSMFrustum.js'; | ||
import CSMFrustrum from './CSMFrustum'; |
@@ -5,2 +5,3 @@ import { Scene } from '../../../src/Three'; | ||
constructor(); | ||
dispose(): void; | ||
} |
import { WebGLRenderer, Vector2 } from '../../../src/Three'; | ||
import { SelectionBox } from './SelectionBox'; | ||
export class SelectionHelper { | ||
constructor(selectionBox: SelectionBox, renderer: WebGLRenderer, cssClassName: string); | ||
constructor(renderer: WebGLRenderer, cssClassName: string); | ||
element: HTMLElement; | ||
@@ -8,0 +6,0 @@ isDown: boolean; |
@@ -7,3 +7,3 @@ interface Stats { | ||
begin(): void; | ||
end(): void; | ||
end(): number; | ||
update(): void; | ||
@@ -10,0 +10,0 @@ domElement: HTMLDivElement; |
@@ -19,4 +19,2 @@ import { Color } from '../../../src/Three'; | ||
function getHSV(color: Color, target: HSL): HSL; | ||
function setCMYK(color: Color, c: number, m: number, y: number, k: number): Color; | ||
function getCMYK(color: Color, target: CMYK): CMYK; | ||
} |
@@ -52,2 +52,3 @@ import { | ||
doRenderTarget(material: Material, output: WebGLRenderTarget): void; | ||
dispose(): void; | ||
} |
@@ -8,3 +8,2 @@ import { | ||
Object3D, | ||
PlaneBufferGeometry, | ||
PlaneGeometry, | ||
@@ -47,3 +46,3 @@ Texture, | ||
blurringPlane: Mesh<PlaneBufferGeometry, MeshBasicMaterial>; | ||
blurringPlane: Mesh<PlaneGeometry, MeshBasicMaterial>; | ||
@@ -50,0 +49,0 @@ labelMaterial: MeshBasicMaterial; |
import { Matrix3 } from '../../../src/Three'; | ||
import { VolumeSlice } from './VolumeSlice.js'; | ||
import { VolumeSlice } from './VolumeSlice'; | ||
@@ -5,0 +5,0 @@ export class Volume { |
import { | ||
DataTexture, | ||
Curve, | ||
Uniform, | ||
IUniform, | ||
Material, | ||
@@ -13,7 +13,7 @@ InstancedMesh, | ||
export interface SplineUniform { | ||
spineTexture: Uniform; | ||
pathOffset: Uniform; | ||
pathSegment: Uniform; | ||
spineOffset: Uniform; | ||
flow: Uniform; | ||
spineTexture: IUniform; | ||
pathOffset: IUniform; | ||
pathSegment: IUniform; | ||
spineOffset: IUniform; | ||
flow: IUniform; | ||
} | ||
@@ -20,0 +20,0 @@ export function initSplineTexture(size?: number): DataTexture; |
@@ -6,3 +6,3 @@ import { NodeTypeOption } from './constants'; | ||
export interface CodeNodeInclude { | ||
build(): void; | ||
build(builder: NodeBuilder): void; | ||
} | ||
@@ -13,3 +13,3 @@ | ||
code: string; | ||
constructor(code: string, nodeType?: NodeTypeOption); | ||
constructor(code?: string, includes?: CodeNodeInclude[]); | ||
@@ -16,0 +16,0 @@ setIncludes(includes: CodeNodeInclude[]): this; |
@@ -5,10 +5,10 @@ import FunctionNode from './FunctionNode'; | ||
export default class FunctionCallNode extends TempNode { | ||
functionNode: FunctionNode; | ||
export default class FunctionCallNode<P extends Node[] | { [name: string]: Node }> extends TempNode { | ||
functionNode: FunctionNode<P>; | ||
parameters: { [name: string]: Node }; | ||
constructor(functionNode?: FunctionNode, parameters?: { [name: string]: Node }); | ||
constructor(functionNode?: FunctionNode<P>, parameters?: P); | ||
setParameters(parameters: { [name: string]: Node }): this; | ||
getParameters(): { [name: string]: Node }; | ||
setParameters(parameters: P): this; | ||
getParameters(): P; | ||
} |
@@ -1,2 +0,2 @@ | ||
import CodeNode from './CodeNode'; | ||
import CodeNode, { CodeNodeInclude } from './CodeNode'; | ||
import FunctionCallNode from './FunctionCallNode'; | ||
@@ -8,9 +8,11 @@ import NodeBuilder from './NodeBuilder'; | ||
export default class FunctionNode extends CodeNode { | ||
export type FunctionNodeArguments = Node[] | { [name: string]: Node }; | ||
export default class FunctionNode<P extends Node[] | { [name: string]: Node }> extends CodeNode { | ||
keywords: { [key: string]: Node }; | ||
constructor(code?: string); | ||
constructor(code?: string, includes?: CodeNodeInclude[]); | ||
getInputs(builder: NodeBuilder): NodeFunctionInput[]; | ||
getNodeFunction(builder: NodeBuilder): NodeFunction; | ||
call(parameters: { [name: string]: Node }): FunctionCallNode; | ||
call(parameters: P): FunctionCallNode<P>; | ||
} |
@@ -30,2 +30,3 @@ import { AnyJson, NodeTypeOption, NodeUpdateTypeOption } from './constants'; | ||
toJSON(meta?: string | { textures: {}; images: {}; nodes: {} }): AnyJson; | ||
getCacheKey(): string; | ||
} |
@@ -7,1 +7,2 @@ import { NodeValueOption } from './constants'; | ||
export function getValueFromType(type: string, ...params: number[]): NodeValueOption | null; | ||
export function getCacheKey(object: Node): string; |
@@ -1,7 +0,8 @@ | ||
import NodeMaterial from '../materials/NodeMaterial'; | ||
import LineBasicNodeMaterial from '../materials/LineBasicNodeMaterial'; | ||
import MeshBasicNodeMaterial from '../materials/MeshBasicNodeMaterial'; | ||
import MeshStandardNodeMaterial from '../materials/MeshStandardNodeMaterial'; | ||
import PointsNodeMaterial from '../materials/PointsNodeMaterial'; | ||
import SpriteNodeMaterial from '../materials/SpriteNodeMaterial'; | ||
import NodeMaterial from './NodeMaterial'; | ||
import LineBasicNodeMaterial from './LineBasicNodeMaterial'; | ||
import MeshBasicNodeMaterial from './MeshBasicNodeMaterial'; | ||
import MeshStandardNodeMaterial from './MeshStandardNodeMaterial'; | ||
import PointsNodeMaterial from './PointsNodeMaterial'; | ||
import SpriteNodeMaterial from './SpriteNodeMaterial'; | ||
import MeshPhysicalNodeMaterial from './MeshPhysicalNodeMaterial'; | ||
@@ -12,2 +13,3 @@ export { | ||
MeshBasicNodeMaterial, | ||
MeshPhysicalNodeMaterial, | ||
MeshStandardNodeMaterial, | ||
@@ -14,0 +16,0 @@ PointsNodeMaterial, |
@@ -10,3 +10,3 @@ // core | ||
import FunctionCallNode from './core/FunctionCallNode'; | ||
import FunctionNode from './core/FunctionNode'; | ||
import FunctionNode, { FunctionNodeArguments } from './core/FunctionNode'; | ||
import InstanceIndexNode from './core/InstanceIndexNode'; | ||
@@ -122,2 +122,3 @@ import Node from './core/Node'; | ||
FunctionNode, | ||
FunctionNodeArguments, | ||
InstanceIndexNode, | ||
@@ -124,0 +125,0 @@ Node, |
@@ -1,6 +0,6 @@ | ||
import Node from '../core/Node'; | ||
import TempNode from '../core/TempNode'; | ||
export default class CheckerNode extends Node { | ||
export default class CheckerNode extends TempNode { | ||
uvNode: Node; | ||
constructor(uvNode?: Node); | ||
} |
@@ -10,3 +10,3 @@ import { ConstNode, Node, NodeBuilder, NodeTypeOption, SwizzleOption } from '../Nodes'; | ||
/** anything that can be passed to {@link nodeObject} and returns a proxy */ | ||
export type NodeRepresentation = number | boolean | Node | Swizzable; | ||
export type NodeRepresentation<T extends Node = Node> = number | boolean | Node | Swizzable<T>; | ||
@@ -16,8 +16,10 @@ /** anything that can be passed to {@link nodeObject} */ | ||
// same logic as in ShaderNodeObject | ||
// same logic as in ShaderNodeObject: number,boolean,node->swizzable, otherwise do nothing | ||
export type NodeObject<T> = T extends Node ? Swizzable<T> : T extends number | boolean ? Swizzable<ConstNode> : T; | ||
type MakeObjectOption<T> = T extends Node ? NodeRepresentation : T; | ||
// opposite of NodeObject: node -> node|swizzable|boolean|number, otherwise do nothing | ||
type Proxied<T> = T extends Node ? NodeRepresentation<T> : T; | ||
// https://github.com/microsoft/TypeScript/issues/42435#issuecomment-765557874 | ||
type MakeObjectOptions<T extends readonly [...unknown[]]> = [...{ [index in keyof T]: MakeObjectOption<T[index]> }]; | ||
export type ProxiedTuple<T extends readonly [...unknown[]]> = [...{ [index in keyof T]: Proxied<T[index]> }]; | ||
export type ProxiedObject<T> = { [index in keyof T]: Proxied<T[index]> }; | ||
type RemoveTail<T extends readonly [...unknown[]]> = T extends [unknown, ...infer X] ? X : []; | ||
@@ -126,3 +128,3 @@ type RemoveHeadAndTail<T extends readonly [...unknown[]]> = T extends [unknown, ...infer X, unknown] ? X : []; | ||
nodeClass: T, | ||
): (...params: MakeObjectOptions<GetConstructors<T>>) => Swizzable<ConstructedNode<T>>; | ||
): (...params: ProxiedTuple<GetConstructors<T>>) => Swizzable<ConstructedNode<T>>; | ||
@@ -132,3 +134,3 @@ export function nodeProxy<T, S extends GetPossibleScopes<T>>( | ||
scope: S, | ||
): (...params: MakeObjectOptions<RemoveTail<GetConstructorsByScope<T, S>>>) => Swizzable<ConstructedNode<T>>; | ||
): (...params: ProxiedTuple<RemoveTail<GetConstructorsByScope<T, S>>>) => Swizzable<ConstructedNode<T>>; | ||
@@ -139,7 +141,7 @@ export function nodeProxy<T, S extends GetPossibleScopes<T>>( | ||
factor: NodeObjectOption, | ||
): (...params: MakeObjectOptions<RemoveHeadAndTail<GetConstructorsByScope<T, S>>>) => Swizzable<ConstructedNode<T>>; | ||
): (...params: ProxiedTuple<RemoveHeadAndTail<GetConstructorsByScope<T, S>>>) => Swizzable<ConstructedNode<T>>; | ||
export function nodeImmutable<T>( | ||
nodeClass: T, | ||
...params: MakeObjectOptions<GetConstructors<T>> | ||
...params: ProxiedTuple<GetConstructors<T>> | ||
): Swizzable<ConstructedNode<T>>; | ||
@@ -146,0 +148,0 @@ |
@@ -16,2 +16,4 @@ import TextureNode from '../accessors/TextureNode'; | ||
NodeOrType, | ||
ProxiedObject, | ||
ProxiedTuple, | ||
} from './ShaderNode'; | ||
@@ -26,5 +28,5 @@ import { Material, Texture } from '../../../../src/Three'; | ||
CodeNode, | ||
CodeNodeInclude, | ||
ComputeNode, | ||
ContextNode, | ||
ConvertNode, | ||
ExpressionNode, | ||
@@ -34,2 +36,3 @@ FrontFacingNode, | ||
FunctionNode, | ||
FunctionNodeArguments, | ||
InstanceIndexNode, | ||
@@ -89,4 +92,2 @@ MaterialNode, | ||
export function func(code: string): ShaderNode<FunctionNode>; | ||
export function uniform(nodeOrType: Node | Swizzable | NodeValueOption): Swizzable; | ||
@@ -102,7 +103,24 @@ | ||
export function call( | ||
functionNode?: NodeRepresentation, | ||
parameters?: { [name: string]: Node }, | ||
): Swizzable<FunctionCallNode>; | ||
// definition: const call = nodeProxy(FunctionCallNode); | ||
export function call<P extends FunctionNodeArguments>( | ||
functionNode?: FunctionNode<P>, | ||
parameters?: ProxiedObject<P>, | ||
): Swizzable<FunctionCallNode<P>>; | ||
export type Fn<P extends FunctionNodeArguments> = P extends readonly [...unknown[]] | ||
? ProxiedTuple<P> | ||
: readonly [ProxiedObject<P>]; | ||
// tslint:disable:no-unnecessary-generics | ||
export function func<P extends FunctionNodeArguments>( | ||
code: string, | ||
includes?: CodeNodeInclude[], | ||
): { call: (...params: Fn<P>) => Swizzable }; | ||
export function fn<P extends FunctionNodeArguments>( | ||
code: string, | ||
includes?: CodeNodeInclude[], | ||
): (...params: Fn<P>) => Swizzable; | ||
// tslint:enable:no-unnecessary-generics | ||
export const instanceIndex: Swizzable<InstanceIndexNode>; | ||
@@ -109,0 +127,0 @@ export function label(node: NodeRepresentation, name?: string): Swizzable<VarNode>; |
@@ -24,3 +24,3 @@ import { | ||
export interface ReflectorOptions { | ||
export interface ReflectorForSSRPassOptions { | ||
clipBias?: number | undefined; | ||
@@ -34,5 +34,5 @@ textureWidth?: number | undefined; | ||
export class Reflector<TGeometry extends BufferGeometry = BufferGeometry> extends Mesh<TGeometry> { | ||
export class ReflectorForSSRPass<TGeometry extends BufferGeometry = BufferGeometry> extends Mesh<TGeometry> { | ||
type: 'ReflectorForSSRPass'; | ||
options: ReflectorOptions; | ||
options: ReflectorForSSRPassOptions; | ||
@@ -54,3 +54,3 @@ static ReflectorShader: ReflectorShader; | ||
constructor(geometry: TGeometry, options: ReflectorOptions); | ||
constructor(geometry: TGeometry, options: ReflectorForSSRPassOptions); | ||
@@ -57,0 +57,0 @@ doRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera) => void; |
@@ -15,3 +15,3 @@ import { | ||
import { Pass, FullScreenQuad } from '../postprocessing/Pass'; | ||
import { Reflector } from '../objects/ReflectorForSSRPass'; | ||
import { ReflectorForSSRPass } from '../objects/ReflectorForSSRPass'; | ||
@@ -27,3 +27,3 @@ export interface SSRPassParams { | ||
isBouncing?: boolean | undefined; | ||
groundReflector: Reflector | null; | ||
groundReflector: ReflectorForSSRPass | null; | ||
} | ||
@@ -38,3 +38,3 @@ | ||
camera: Camera; | ||
groundReflector: Reflector | null; | ||
groundReflector: ReflectorForSSRPass | null; | ||
opacity: number; | ||
@@ -41,0 +41,0 @@ output: number; |
@@ -1,5 +0,17 @@ | ||
import Node from '../../../nodes/core/Node.js'; | ||
import Node from '../../../nodes/core/Node'; | ||
export default class SlotNode extends Node { | ||
constructor(node: Node, name: string, NodeTypeOption: string); | ||
export interface SlotNodeParameters<TNode extends Node = Node> { | ||
node?: TNode; | ||
nodeType?: string; | ||
source?: string | null; | ||
target?: string | null; | ||
} | ||
export default class SlotNode<TNode extends Node = Node> extends Node { | ||
inclusionType: 'replace'; | ||
node: TNode | null; | ||
source: null; | ||
target: null; | ||
constructor(params: SlotNodeParameters<TNode>); | ||
} |
@@ -1,6 +0,6 @@ | ||
import NodeBuilder from '../../../nodes/core/NodeBuilder.js'; | ||
import NodeBuilder from '../../../nodes/core/NodeBuilder'; | ||
import { Texture, TextureEncoding, Renderer, Object3D } from '../../../../../src/Three'; | ||
import Node from '../../../nodes/core/Node.js'; | ||
import SlotNode from './SlotNode.js'; | ||
import { NodeShaderStageOption } from '../../../nodes/core/constants.js'; | ||
import Node from '../../../nodes/core/Node'; | ||
import SlotNode from './SlotNode'; | ||
import { NodeShaderStageOption } from '../../../nodes/core/constants'; | ||
@@ -42,3 +42,3 @@ export class WebGLNodeBuilder extends NodeBuilder { | ||
addCodeAfterSnippet(shaderStage: string, snippet: string, code: string): string; | ||
addCodeAfterCode(shaderStage: string, snippet: string, code: string): string; | ||
addCodeAfterInclude(shaderStage: string, snippet: string, code: string): string; | ||
@@ -45,0 +45,0 @@ |
@@ -1,3 +0,3 @@ | ||
import NodeFrame from '../../../nodes/core/NodeFrame.js'; | ||
import NodeFrame from '../../../nodes/core/NodeFrame'; | ||
export const nodeFrame: NodeFrame; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const AfterimageShader: { | ||
uniforms: { | ||
damp: Uniform; | ||
tOld: Uniform; | ||
tNew: Uniform; | ||
damp: IUniform; | ||
tOld: IUniform; | ||
tNew: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const BleachBypassShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
opacity: Uniform; | ||
tDiffuse: IUniform; | ||
opacity: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,9 +0,9 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const BlendShader: { | ||
uniforms: { | ||
tDiffuse1: Uniform; | ||
tDiffuse2: Uniform; | ||
mixRatio: Uniform; | ||
opacity: Uniform; | ||
tDiffuse1: IUniform; | ||
tDiffuse2: IUniform; | ||
mixRatio: IUniform; | ||
opacity: IUniform; | ||
}; | ||
@@ -10,0 +10,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
@@ -9,10 +9,10 @@ export const BokehShader: { | ||
uniforms: { | ||
tColor: Uniform; | ||
tDepth: Uniform; | ||
focus: Uniform; | ||
aspect: Uniform; | ||
aperture: Uniform; | ||
maxblur: Uniform; | ||
nearClip: Uniform; | ||
farClip: Uniform; | ||
tColor: IUniform; | ||
tDepth: IUniform; | ||
focus: IUniform; | ||
aspect: IUniform; | ||
aperture: IUniform; | ||
maxblur: IUniform; | ||
nearClip: IUniform; | ||
farClip: IUniform; | ||
}; | ||
@@ -19,0 +19,0 @@ vertexShader: string; |
@@ -1,27 +0,27 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export interface BokehShaderUniforms { | ||
textureWidth: Uniform; | ||
textureHeight: Uniform; | ||
focalDepth: Uniform; | ||
focalLength: Uniform; | ||
fstop: Uniform; | ||
tColor: Uniform; | ||
tDepth: Uniform; | ||
maxblur: Uniform; | ||
showFocus: Uniform; | ||
manualdof: Uniform; | ||
vignetting: Uniform; | ||
depthblur: Uniform; | ||
threshold: Uniform; | ||
gain: Uniform; | ||
bias: Uniform; | ||
fringe: Uniform; | ||
znear: Uniform; | ||
zfar: Uniform; | ||
noise: Uniform; | ||
dithering: Uniform; | ||
pentagon: Uniform; | ||
shaderFocus: Uniform; | ||
focusCoords: Uniform; | ||
textureWidth: IUniform; | ||
textureHeight: IUniform; | ||
focalDepth: IUniform; | ||
focalLength: IUniform; | ||
fstop: IUniform; | ||
tColor: IUniform; | ||
tDepth: IUniform; | ||
maxblur: IUniform; | ||
showFocus: IUniform; | ||
manualdof: IUniform; | ||
vignetting: IUniform; | ||
depthblur: IUniform; | ||
threshold: IUniform; | ||
gain: IUniform; | ||
bias: IUniform; | ||
fringe: IUniform; | ||
znear: IUniform; | ||
zfar: IUniform; | ||
noise: IUniform; | ||
dithering: IUniform; | ||
pentagon: IUniform; | ||
shaderFocus: IUniform; | ||
focusCoords: IUniform; | ||
} | ||
@@ -37,4 +37,4 @@ | ||
uniforms: { | ||
mNear: Uniform; | ||
mFar: Uniform; | ||
mNear: IUniform; | ||
mFar: IUniform; | ||
}; | ||
@@ -41,0 +41,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const BrightnessContrastShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
brightness: Uniform; | ||
contrast: Uniform; | ||
tDiffuse: IUniform; | ||
brightness: IUniform; | ||
contrast: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,9 +0,9 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const ColorCorrectionShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
powRGB: Uniform; | ||
mulRGB: Uniform; | ||
addRGB: Uniform; | ||
tDiffuse: IUniform; | ||
powRGB: IUniform; | ||
mulRGB: IUniform; | ||
addRGB: IUniform; | ||
}; | ||
@@ -10,0 +10,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const ColorifyShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
color: Uniform; | ||
tDiffuse: IUniform; | ||
color: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform } from '../../../src/core/Uniform'; | ||
import { IUniform } from '../../../src/Three'; | ||
@@ -9,5 +9,5 @@ export const ConvolutionShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
uImageIncrement: Uniform; | ||
cKernel: Uniform; | ||
tDiffuse: IUniform; | ||
uImageIncrement: IUniform; | ||
cKernel: IUniform; | ||
}; | ||
@@ -14,0 +14,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const CopyShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
opacity: Uniform; | ||
tDiffuse: IUniform; | ||
opacity: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform, Vector2, Material } from '../../../src/Three'; | ||
import { IUniform, Vector2, Material } from '../../../src/Three'; | ||
@@ -10,10 +10,10 @@ export const DepthLimitedBlurShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
size: Uniform; | ||
sampleUvOffsets: Uniform; | ||
sampleWeights: Uniform; | ||
tDepth: Uniform; | ||
cameraNear: Uniform; | ||
cameraFar: Uniform; | ||
depthCutoff: Uniform; | ||
tDiffuse: IUniform; | ||
size: IUniform; | ||
sampleUvOffsets: IUniform; | ||
sampleWeights: IUniform; | ||
tDepth: IUniform; | ||
cameraNear: IUniform; | ||
cameraFar: IUniform; | ||
depthCutoff: IUniform; | ||
}; | ||
@@ -20,0 +20,0 @@ vertexShader: string; |
@@ -1,16 +0,16 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const DigitalGlitch: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tDisp: Uniform; | ||
byp: Uniform; | ||
amount: Uniform; | ||
angle: Uniform; | ||
seed: Uniform; | ||
seed_x: Uniform; | ||
seed_y: Uniform; | ||
distortion_x: Uniform; | ||
distortion_y: Uniform; | ||
col_s: Uniform; | ||
tDiffuse: IUniform; | ||
tDisp: IUniform; | ||
byp: IUniform; | ||
amount: IUniform; | ||
angle: IUniform; | ||
seed: IUniform; | ||
seed_x: IUniform; | ||
seed_y: IUniform; | ||
distortion_x: IUniform; | ||
distortion_y: IUniform; | ||
col_s: IUniform; | ||
}; | ||
@@ -17,0 +17,0 @@ vertexShader: string; |
@@ -1,9 +0,9 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const DOFMipMapShader: { | ||
uniforms: { | ||
tColor: Uniform; | ||
tDepth: Uniform; | ||
focus: Uniform; | ||
maxblur: Uniform; | ||
tColor: IUniform; | ||
tDepth: IUniform; | ||
focus: IUniform; | ||
maxblur: IUniform; | ||
}; | ||
@@ -10,0 +10,0 @@ vertexShader: string; |
@@ -1,10 +0,10 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const DotScreenShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tSize: Uniform; | ||
center: Uniform; | ||
angle: Uniform; | ||
scale: Uniform; | ||
tDiffuse: IUniform; | ||
tSize: IUniform; | ||
center: IUniform; | ||
angle: IUniform; | ||
scale: IUniform; | ||
}; | ||
@@ -11,0 +11,0 @@ vertexShader: string; |
@@ -1,11 +0,11 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const FilmShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
time: Uniform; | ||
nIntensity: Uniform; | ||
sIntensity: Uniform; | ||
sCount: Uniform; | ||
grayscale: Uniform; | ||
tDiffuse: IUniform; | ||
time: IUniform; | ||
nIntensity: IUniform; | ||
sIntensity: IUniform; | ||
sCount: IUniform; | ||
grayscale: IUniform; | ||
}; | ||
@@ -12,0 +12,0 @@ vertexShader: string; |
@@ -1,10 +0,10 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const FocusShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
screenWidth: Uniform; | ||
screenHeight: Uniform; | ||
sampleDistance: Uniform; | ||
waveFactor: Uniform; | ||
tDiffuse: IUniform; | ||
screenWidth: IUniform; | ||
screenHeight: IUniform; | ||
sampleDistance: IUniform; | ||
waveFactor: IUniform; | ||
}; | ||
@@ -11,0 +11,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const FreiChenShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
aspect: Uniform; | ||
tDiffuse: IUniform; | ||
aspect: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const FXAAShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
resolution: Uniform; | ||
tDiffuse: IUniform; | ||
resolution: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,6 +0,6 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const GammaCorrectionShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tDiffuse: IUniform; | ||
}; | ||
@@ -7,0 +7,0 @@ vertexShader: string; |
@@ -1,6 +0,6 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const GodRaysDepthMaskShader: { | ||
uniforms: { | ||
tInput: Uniform; | ||
tInput: IUniform; | ||
}; | ||
@@ -13,5 +13,5 @@ vertexShader: string; | ||
uniforms: { | ||
tInput: Uniform; | ||
fStepSize: Uniform; | ||
vSunPositionScreenSpace: Uniform; | ||
tInput: IUniform; | ||
fStepSize: IUniform; | ||
vSunPositionScreenSpace: IUniform; | ||
}; | ||
@@ -24,5 +24,5 @@ vertexShader: string; | ||
uniforms: { | ||
tColors: Uniform; | ||
tGodRays: Uniform; | ||
fGodRayIntensity: Uniform; | ||
tColors: IUniform; | ||
tGodRays: IUniform; | ||
fGodRayIntensity: IUniform; | ||
}; | ||
@@ -35,6 +35,6 @@ vertexShader: string; | ||
uniforms: { | ||
vSunPositionScreenSpace: Uniform; | ||
fAspect: Uniform; | ||
sunColor: Uniform; | ||
bgColor: Uniform; | ||
vSunPositionScreenSpace: IUniform; | ||
fAspect: IUniform; | ||
sunColor: IUniform; | ||
bgColor: IUniform; | ||
}; | ||
@@ -41,0 +41,0 @@ vertexShader: string; |
@@ -1,18 +0,18 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const HalftoneShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
shape: Uniform; | ||
radius: Uniform; | ||
rotateR: Uniform; | ||
rotateG: Uniform; | ||
rotateB: Uniform; | ||
scatter: Uniform; | ||
width: Uniform; | ||
height: Uniform; | ||
blending: Uniform; | ||
blendingMode: Uniform; | ||
greyscale: Uniform; | ||
disable: Uniform; | ||
tDiffuse: IUniform; | ||
shape: IUniform; | ||
radius: IUniform; | ||
rotateR: IUniform; | ||
rotateG: IUniform; | ||
rotateB: IUniform; | ||
scatter: IUniform; | ||
width: IUniform; | ||
height: IUniform; | ||
blending: IUniform; | ||
blendingMode: IUniform; | ||
greyscale: IUniform; | ||
disable: IUniform; | ||
}; | ||
@@ -19,0 +19,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const HorizontalBlurShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
h: Uniform; | ||
tDiffuse: IUniform; | ||
h: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const HorizontalTiltShiftShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
h: Uniform; | ||
r: Uniform; | ||
tDiffuse: IUniform; | ||
h: IUniform; | ||
r: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const HueSaturationShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
hue: Uniform; | ||
saturation: Uniform; | ||
tDiffuse: IUniform; | ||
hue: IUniform; | ||
saturation: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const KaleidoShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
sides: Uniform; | ||
angle: Uniform; | ||
tDiffuse: IUniform; | ||
sides: IUniform; | ||
angle: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
@@ -6,7 +6,7 @@ export const LuminosityHighPassShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
luminosityThreshold: Uniform; | ||
smoothWidth: Uniform; | ||
defaultColor: Uniform; | ||
defaultOpacity: Uniform; | ||
tDiffuse: IUniform; | ||
luminosityThreshold: IUniform; | ||
smoothWidth: IUniform; | ||
defaultColor: IUniform; | ||
defaultOpacity: IUniform; | ||
}; | ||
@@ -13,0 +13,0 @@ vertexShader: string; |
@@ -1,6 +0,6 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const LuminosityShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tDiffuse: IUniform; | ||
}; | ||
@@ -7,0 +7,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const MirrorShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
side: Uniform; | ||
tDiffuse: IUniform; | ||
side: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,9 +0,9 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const NormalMapShader: { | ||
uniforms: { | ||
heightMap: Uniform; | ||
resolution: Uniform; | ||
scale: Uniform; | ||
height: Uniform; | ||
heightMap: IUniform; | ||
resolution: IUniform; | ||
scale: IUniform; | ||
height: IUniform; | ||
}; | ||
@@ -10,0 +10,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const PixelShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
resolution: Uniform; | ||
pixelSize: Uniform; | ||
tDiffuse: IUniform; | ||
resolution: IUniform; | ||
pixelSize: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const RGBShiftShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
amount: Uniform; | ||
angle: Uniform; | ||
tDiffuse: IUniform; | ||
amount: IUniform; | ||
angle: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
@@ -13,16 +13,16 @@ export const SAOShader: { | ||
uniforms: { | ||
tDepth: Uniform; | ||
tDiffuse: Uniform; | ||
tNormal: Uniform; | ||
size: Uniform; | ||
cameraNear: Uniform; | ||
cameraFar: Uniform; | ||
cameraProjectionMatrix: Uniform; | ||
cameraInverseProjectionMatrix: Uniform; | ||
scale: Uniform; | ||
intensity: Uniform; | ||
bias: Uniform; | ||
minResolution: Uniform; | ||
kernelRadius: Uniform; | ||
randomSeed: Uniform; | ||
tDepth: IUniform; | ||
tDiffuse: IUniform; | ||
tNormal: IUniform; | ||
size: IUniform; | ||
cameraNear: IUniform; | ||
cameraFar: IUniform; | ||
cameraProjectionMatrix: IUniform; | ||
cameraInverseProjectionMatrix: IUniform; | ||
scale: IUniform; | ||
intensity: IUniform; | ||
bias: IUniform; | ||
minResolution: IUniform; | ||
kernelRadius: IUniform; | ||
randomSeed: IUniform; | ||
}; | ||
@@ -29,0 +29,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const SepiaShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
amount: Uniform; | ||
tDiffuse: IUniform; | ||
amount: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
@@ -8,4 +8,4 @@ export const SMAAEdgesShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
resolution: Uniform; | ||
tDiffuse: IUniform; | ||
resolution: IUniform; | ||
}; | ||
@@ -24,6 +24,6 @@ vertexShader: string; | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tArea: Uniform; | ||
tSearch: Uniform; | ||
resolution: Uniform; | ||
tDiffuse: IUniform; | ||
tArea: IUniform; | ||
tSearch: IUniform; | ||
resolution: IUniform; | ||
}; | ||
@@ -36,5 +36,5 @@ vertexShader: string; | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tColor: Uniform; | ||
resolution: Uniform; | ||
tDiffuse: IUniform; | ||
tColor: IUniform; | ||
resolution: IUniform; | ||
}; | ||
@@ -41,0 +41,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const SobelOperatorShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
resolution: Uniform; | ||
tDiffuse: IUniform; | ||
resolution: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
@@ -9,15 +9,15 @@ export const SSAOShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tNormal: Uniform; | ||
tDepth: Uniform; | ||
tNoise: Uniform; | ||
kernel: Uniform; | ||
cameraNear: Uniform; | ||
cameraFar: Uniform; | ||
resolution: Uniform; | ||
cameraProjectionMatrix: Uniform; | ||
cameraInverseProjectionMatrix: Uniform; | ||
kernelRadius: Uniform; | ||
minDistance: Uniform; | ||
maxDistance: Uniform; | ||
tDiffuse: IUniform; | ||
tNormal: IUniform; | ||
tDepth: IUniform; | ||
tNoise: IUniform; | ||
kernel: IUniform; | ||
cameraNear: IUniform; | ||
cameraFar: IUniform; | ||
resolution: IUniform; | ||
cameraProjectionMatrix: IUniform; | ||
cameraInverseProjectionMatrix: IUniform; | ||
kernelRadius: IUniform; | ||
minDistance: IUniform; | ||
maxDistance: IUniform; | ||
}; | ||
@@ -33,5 +33,5 @@ vertexShader: string; | ||
uniforms: { | ||
tDepth: Uniform; | ||
cameraNear: Uniform; | ||
cameraFar: Uniform; | ||
tDepth: IUniform; | ||
cameraNear: IUniform; | ||
cameraFar: IUniform; | ||
}; | ||
@@ -44,4 +44,4 @@ vertexShader: string; | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
resolution: Uniform; | ||
tDiffuse: IUniform; | ||
resolution: IUniform; | ||
}; | ||
@@ -48,0 +48,0 @@ vertexShader: string; |
@@ -1,34 +0,34 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const SubsurfaceScatteringShader: { | ||
uniforms: { | ||
alphaMap: Uniform; | ||
ambientLightColor: Uniform; | ||
color: Uniform; | ||
diffuse: Uniform; | ||
directionalLights: Uniform; | ||
directionalShadowMap: Uniform; | ||
directionalShadowMatrix: Uniform; | ||
emissive: Uniform; | ||
hemisphereLights: Uniform; | ||
lightProbe: Uniform; | ||
map: Uniform; | ||
opacity: Uniform; | ||
pointLights: Uniform; | ||
pointShadowMap: Uniform; | ||
pointShadowMatrix: Uniform; | ||
rectAreaLights: Uniform; | ||
shininess: Uniform; | ||
specular: Uniform; | ||
spotLights: Uniform; | ||
spotShadowMap: Uniform; | ||
spotShadowMatrix: Uniform; | ||
thicknessAmbient: Uniform; | ||
thicknessAttenuation: Uniform; | ||
thicknessColor: Uniform; | ||
thicknessDistortion: Uniform; | ||
thicknessMap: Uniform; | ||
thicknessPower: Uniform; | ||
thicknessScale: Uniform; | ||
uvTransform: Uniform; | ||
alphaMap: IUniform; | ||
ambientLightColor: IUniform; | ||
color: IUniform; | ||
diffuse: IUniform; | ||
directionalLights: IUniform; | ||
directionalShadowMap: IUniform; | ||
directionalShadowMatrix: IUniform; | ||
emissive: IUniform; | ||
hemisphereLights: IUniform; | ||
lightProbe: IUniform; | ||
map: IUniform; | ||
opacity: IUniform; | ||
pointLights: IUniform; | ||
pointShadowMap: IUniform; | ||
pointShadowMatrix: IUniform; | ||
rectAreaLights: IUniform; | ||
shininess: IUniform; | ||
specular: IUniform; | ||
spotLights: IUniform; | ||
spotShadowMap: IUniform; | ||
spotShadowMatrix: IUniform; | ||
thicknessAmbient: IUniform; | ||
thicknessAttenuation: IUniform; | ||
thicknessColor: IUniform; | ||
thicknessDistortion: IUniform; | ||
thicknessMap: IUniform; | ||
thicknessPower: IUniform; | ||
thicknessScale: IUniform; | ||
uvTransform: IUniform; | ||
}; | ||
@@ -35,0 +35,0 @@ vertexShader: string; |
@@ -1,6 +0,6 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const TechnicolorShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
tDiffuse: IUniform; | ||
}; | ||
@@ -7,0 +7,0 @@ vertexShader: string; |
@@ -1,11 +0,11 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const ToneMapShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
averageLuminance: Uniform; | ||
luminanceMap: Uniform; | ||
maxLuminance: Uniform; | ||
minLuminance: Uniform; | ||
middleGrey: Uniform; | ||
tDiffuse: IUniform; | ||
averageLuminance: IUniform; | ||
luminanceMap: IUniform; | ||
maxLuminance: IUniform; | ||
minLuminance: IUniform; | ||
middleGrey: IUniform; | ||
}; | ||
@@ -12,0 +12,0 @@ vertexShader: string; |
@@ -1,9 +0,9 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const ToonShader1: { | ||
uniforms: { | ||
uDirLightPos: Uniform; | ||
uDirLightColor: Uniform; | ||
uAmbientLightColor: Uniform; | ||
uBaseColor: Uniform; | ||
uDirLightPos: IUniform; | ||
uDirLightColor: IUniform; | ||
uAmbientLightColor: IUniform; | ||
uBaseColor: IUniform; | ||
}; | ||
@@ -16,10 +16,10 @@ vertexShader: string; | ||
uniforms: { | ||
uDirLightPos: Uniform; | ||
uDirLightColor: Uniform; | ||
uAmbientLightColor: Uniform; | ||
uBaseColor: Uniform; | ||
uLineColor1: Uniform; | ||
uLineColor2: Uniform; | ||
uLineColor3: Uniform; | ||
uLineColor4: Uniform; | ||
uDirLightPos: IUniform; | ||
uDirLightColor: IUniform; | ||
uAmbientLightColor: IUniform; | ||
uBaseColor: IUniform; | ||
uLineColor1: IUniform; | ||
uLineColor2: IUniform; | ||
uLineColor3: IUniform; | ||
uLineColor4: IUniform; | ||
}; | ||
@@ -32,10 +32,10 @@ vertexShader: string; | ||
uniforms: { | ||
uDirLightPos: Uniform; | ||
uDirLightColor: Uniform; | ||
uAmbientLightColor: Uniform; | ||
uBaseColor: Uniform; | ||
uLineColor1: Uniform; | ||
uLineColor2: Uniform; | ||
uLineColor3: Uniform; | ||
uLineColor4: Uniform; | ||
uDirLightPos: IUniform; | ||
uDirLightColor: IUniform; | ||
uAmbientLightColor: IUniform; | ||
uBaseColor: IUniform; | ||
uLineColor1: IUniform; | ||
uLineColor2: IUniform; | ||
uLineColor3: IUniform; | ||
uLineColor4: IUniform; | ||
}; | ||
@@ -48,7 +48,7 @@ vertexShader: string; | ||
uniforms: { | ||
uDirLightPos: Uniform; | ||
uDirLightColor: Uniform; | ||
uAmbientLightColor: Uniform; | ||
uBaseColor: Uniform; | ||
uLineColor1: Uniform; | ||
uDirLightPos: IUniform; | ||
uDirLightColor: IUniform; | ||
uAmbientLightColor: IUniform; | ||
uBaseColor: IUniform; | ||
uLineColor1: IUniform; | ||
}; | ||
@@ -55,0 +55,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const TriangleBlurShader: { | ||
uniforms: { | ||
texture: Uniform; | ||
delta: Uniform; | ||
texture: IUniform; | ||
delta: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const UnpackDepthRGBAShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
opacity: Uniform; | ||
tDiffuse: IUniform; | ||
opacity: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,7 +0,7 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const VerticalBlurShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
v: Uniform; | ||
tDiffuse: IUniform; | ||
v: IUniform; | ||
}; | ||
@@ -8,0 +8,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const VerticalTiltShiftShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
v: Uniform; | ||
r: Uniform; | ||
tDiffuse: IUniform; | ||
v: IUniform; | ||
r: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,8 +0,8 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const VignetteShader: { | ||
uniforms: { | ||
tDiffuse: Uniform; | ||
offset: Uniform; | ||
darkness: Uniform; | ||
tDiffuse: IUniform; | ||
offset: IUniform; | ||
darkness: IUniform; | ||
}; | ||
@@ -9,0 +9,0 @@ vertexShader: string; |
@@ -1,11 +0,11 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const VolumeRenderShader1: { | ||
uniforms: { | ||
u_size: Uniform; | ||
u_renderstyle: Uniform; | ||
u_renderthreshold: Uniform; | ||
u_clim: Uniform; | ||
u_data: Uniform; | ||
u_cmdata: Uniform; | ||
u_size: IUniform; | ||
u_renderstyle: IUniform; | ||
u_renderthreshold: IUniform; | ||
u_clim: IUniform; | ||
u_data: IUniform; | ||
u_cmdata: IUniform; | ||
}; | ||
@@ -12,0 +12,0 @@ vertexShader: string; |
@@ -1,10 +0,10 @@ | ||
import { Uniform } from '../../../src/Three'; | ||
import { IUniform } from '../../../src/Three'; | ||
export const WaterRefractionShader: { | ||
uniforms: { | ||
color: Uniform; | ||
time: Uniform; | ||
tDiffuse: Uniform; | ||
tDudv: Uniform; | ||
textureMatrix: Uniform; | ||
color: IUniform; | ||
time: IUniform; | ||
tDiffuse: IUniform; | ||
tDudv: IUniform; | ||
textureMatrix: IUniform; | ||
}; | ||
@@ -11,0 +11,0 @@ vertexShader: string; |
@@ -1,2 +0,2 @@ | ||
import { PerspectiveCamera, Vector3 } from '../../../src/Three.js'; | ||
import { PerspectiveCamera, Vector3 } from '../../../src/Three'; | ||
@@ -3,0 +3,0 @@ export function frameCorners( |
@@ -1,2 +0,2 @@ | ||
// Type definitions for three 0.143 | ||
// Type definitions for three 0.144 | ||
// Project: https://threejs.org/ | ||
@@ -3,0 +3,0 @@ // Definitions by: Josh Ellis <https://github.com/joshuaellis> |
{ | ||
"name": "@types/three", | ||
"version": "0.143.2", | ||
"version": "0.144.0", | ||
"description": "TypeScript definitions for three", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three", | ||
}, | ||
"typesPublisherContentHash": "737cbdf423532e44f0ca249fff948668695b32755741113e2aa638786cd7717e", | ||
"typeScriptVersion": "4.0" | ||
"typesPublisherContentHash": "fd44eeaf35ec2ad7992d39b9da4bfde0290790e3cec4fb679df94f09e35c72dd", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 29 Aug 2022 17:32:33 GMT | ||
* Last updated: Fri, 02 Sep 2022 10:02:40 GMT | ||
* Dependencies: [@types/webxr](https://npmjs.com/package/@types/webxr) | ||
@@ -14,0 +14,0 @@ * Global values: `THREE` |
@@ -42,7 +42,2 @@ export const REVISION: string; | ||
// shading | ||
export enum Shading {} | ||
export const FlatShading: Shading; | ||
export const SmoothShading: Shading; | ||
// blending modes | ||
@@ -49,0 +44,0 @@ export enum Blending {} |
@@ -54,6 +54,2 @@ import { Usage } from '../constants'; | ||
copyArray(array: ArrayLike<number>): this; | ||
copyColorsArray(colors: Array<{ r: number; g: number; b: number }>): this; | ||
copyVector2sArray(vectors: Array<{ x: number; y: number }>): this; | ||
copyVector3sArray(vectors: Array<{ x: number; y: number; z: number }>): this; | ||
copyVector4sArray(vectors: Array<{ x: number; y: number; z: number; w: number }>): this; | ||
applyMatrix3(m: Matrix3): this; | ||
@@ -60,0 +56,0 @@ applyMatrix4(m: Matrix4): this; |
@@ -146,3 +146,2 @@ import { BufferAttribute } from './BufferAttribute'; | ||
merge(geometry: BufferGeometry, offset?: number): BufferGeometry; | ||
normalizeNormals(): void; | ||
@@ -149,0 +148,0 @@ |
@@ -327,3 +327,4 @@ import { Vector3 } from './../math/Vector3'; | ||
*/ | ||
lookAt(vector: Vector3 | number, y?: number, z?: number): void; | ||
lookAt(vector: Vector3): void; | ||
lookAt(x: number, y: number, z: number): void; | ||
@@ -330,0 +331,0 @@ /** |
@@ -33,3 +33,3 @@ import { Vector2 } from './../../math/Vector2'; | ||
splineThru(pts: Vector2[]): this; | ||
toShapes(isCCW: boolean, noHoles?: boolean): Shape[]; | ||
toShapes(isCCW: boolean): Shape[]; | ||
} |
@@ -37,3 +37,1 @@ import { BufferGeometry } from '../core/BufferGeometry'; | ||
} | ||
export { BoxGeometry as BoxBufferGeometry }; |
@@ -26,3 +26,1 @@ import { BufferGeometry } from '../core/BufferGeometry'; | ||
} | ||
export { CapsuleGeometry as CapsuleBufferGeometry }; |
@@ -26,3 +26,1 @@ import { BufferGeometry } from '../core/BufferGeometry'; | ||
} | ||
export { CircleGeometry as CircleBufferGeometry }; |
@@ -30,3 +30,1 @@ import { CylinderGeometry } from './CylinderGeometry'; | ||
} | ||
export { ConeGeometry as ConeBufferGeometry }; |
@@ -43,3 +43,1 @@ import { BufferGeometry } from '../core/BufferGeometry'; | ||
} | ||
export { CylinderGeometry as CylinderBufferGeometry }; |
@@ -17,3 +17,1 @@ import { PolyhedronGeometry } from './PolyhedronGeometry'; | ||
} | ||
export { DodecahedronGeometry as DodecahedronBufferGeometry }; |
@@ -72,3 +72,1 @@ import { Curve } from './../extras/core/Curve'; | ||
} | ||
export { ExtrudeGeometry as ExtrudeBufferGeometry }; |
@@ -17,3 +17,1 @@ import { PolyhedronGeometry } from './PolyhedronGeometry'; | ||
} | ||
export { IcosahedronGeometry as IcosahedronBufferGeometry }; |
@@ -27,3 +27,1 @@ import { Vector2 } from './../math/Vector2'; | ||
} | ||
export { LatheGeometry as LatheBufferGeometry }; |
@@ -17,3 +17,1 @@ import { PolyhedronGeometry } from './PolyhedronGeometry'; | ||
} | ||
export { OctahedronGeometry as OctahedronBufferGeometry }; |
@@ -26,3 +26,1 @@ import { BufferGeometry } from './../core/BufferGeometry'; | ||
} | ||
export { PlaneGeometry as PlaneBufferGeometry }; |
@@ -26,3 +26,1 @@ import { BufferGeometry } from './../core/BufferGeometry'; | ||
} | ||
export { PolyhedronGeometry as PolyhedronBufferGeometry }; |
@@ -37,3 +37,1 @@ import { BufferGeometry } from './../core/BufferGeometry'; | ||
} | ||
export { RingGeometry as RingBufferGeometry }; |
@@ -14,3 +14,1 @@ import { Shape } from './../extras/core/Shape'; | ||
} | ||
export { ShapeGeometry as ShapeBufferGeometry }; |
@@ -40,3 +40,1 @@ import { BufferGeometry } from './../core/BufferGeometry'; | ||
} | ||
export { SphereGeometry as SphereBufferGeometry }; |
@@ -17,3 +17,1 @@ import { PolyhedronGeometry } from './PolyhedronGeometry'; | ||
} | ||
export { TetrahedronGeometry as TetrahedronBufferGeometry }; |
@@ -28,3 +28,1 @@ import { BufferGeometry } from './../core/BufferGeometry'; | ||
} | ||
export { TorusGeometry as TorusBufferGeometry }; |
@@ -37,3 +37,1 @@ import { BufferGeometry } from './../core/BufferGeometry'; | ||
} | ||
export { TorusKnotGeometry as TorusKnotBufferGeometry }; |
@@ -39,3 +39,1 @@ import { Curve } from './../extras/core/Curve'; | ||
} | ||
export { TubeGeometry as TubeBufferGeometry }; |
@@ -7,2 +7,3 @@ import { ColorRepresentation } from '../utils'; | ||
color?: ColorRepresentation | undefined; | ||
fog?: boolean | undefined; | ||
linewidth?: number | undefined; | ||
@@ -27,2 +28,8 @@ linecap?: string | undefined; | ||
/** | ||
* Whether the material is affected by fog. Default is true. | ||
* @default true | ||
*/ | ||
fog: boolean; | ||
/** | ||
* @default 1 | ||
@@ -29,0 +36,0 @@ */ |
import { Color } from './../math/Color'; | ||
import { Texture } from './../textures/Texture'; | ||
import { MaterialParameters, Material } from './Material'; | ||
import { Combine } from '../constants'; | ||
import { Combine, NormalMapTypes } from '../constants'; | ||
import { ColorRepresentation } from '../utils'; | ||
import { Vector2 } from '../Three'; | ||
export interface MeshLambertMaterialParameters extends MaterialParameters { | ||
bumpMap?: Texture | undefined; | ||
bumpScale?: number | undefined; | ||
color?: ColorRepresentation | undefined; | ||
displacementMap?: Texture | undefined; | ||
displacementScale?: number | undefined; | ||
displacementBias?: number | undefined; | ||
emissive?: ColorRepresentation | undefined; | ||
emissiveIntensity?: number | undefined; | ||
emissiveMap?: Texture | null | undefined; | ||
flatShading?: boolean | undefined; | ||
map?: Texture | null | undefined; | ||
lightMap?: Texture | null | undefined; | ||
lightMapIntensity?: number | undefined; | ||
normalMap?: Texture | undefined; | ||
normalScale?: Vector2 | undefined; | ||
aoMap?: Texture | null | undefined; | ||
@@ -44,2 +53,27 @@ aoMapIntensity?: number | undefined; | ||
/** | ||
* @default null | ||
*/ | ||
bumpMap: Texture | null; | ||
/** | ||
* @default 1 | ||
*/ | ||
bumpScale: number; | ||
/** | ||
* @default null | ||
*/ | ||
displacementMap: Texture | null; | ||
/** | ||
* @default 1 | ||
*/ | ||
dispalcementScale: number; | ||
/** | ||
* @default 0 | ||
*/ | ||
displacementBias: number; | ||
/** | ||
* @default new THREE.Color( 0x000000 ) | ||
@@ -60,2 +94,7 @@ */ | ||
/** | ||
* @default false | ||
*/ | ||
flatShading: boolean; | ||
/** | ||
* @default null | ||
@@ -78,2 +117,14 @@ */ | ||
*/ | ||
normalMap: Texture | null; | ||
normalMapType: NormalMapTypes; | ||
/** | ||
* @default new THREE.Vector2( 1, 1 ) | ||
*/ | ||
normalScale: Vector2; | ||
/** | ||
* @default null | ||
*/ | ||
aoMap: Texture | null; | ||
@@ -80,0 +131,0 @@ |
@@ -171,2 +171,7 @@ import { Texture } from './../textures/Texture'; | ||
/** | ||
* @default 0 | ||
*/ | ||
iridescence: number; | ||
/** | ||
* @default [100, 400] | ||
@@ -173,0 +178,0 @@ */ |
@@ -14,3 +14,3 @@ import { IUniform } from '../renderers/shaders/UniformsLib'; | ||
clipping?: boolean | undefined; | ||
fog?: boolean | undefined; | ||
extensions?: | ||
@@ -17,0 +17,0 @@ | { |
@@ -171,7 +171,2 @@ import { Euler } from './Euler'; | ||
/** | ||
* @deprecated Use {@link Quaternion#invert .invert()} instead. | ||
*/ | ||
inverse(): Quaternion; | ||
random(): Quaternion; | ||
@@ -178,0 +173,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { Uniform } from '../../core/Uniform'; | ||
import { UniformsGroup } from '../../core/UniformsGroup'; | ||
@@ -3,0 +2,0 @@ |
@@ -215,3 +215,3 @@ /** | ||
export * from './renderers/webxr/WebXRManager'; | ||
export { WebGLUtils } from './renderers/webgl/WebGLUtils.js'; | ||
export { WebGLUtils } from './renderers/webgl/WebGLUtils'; | ||
/** | ||
@@ -218,0 +218,0 @@ * Scenes |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
657404
612
19852