@types/three 0.164.1 → 0.166.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.
- three/README.md +1 -1
- three/examples/jsm/controls/TransformControls.d.ts +8 -6
- three/examples/jsm/exporters/GLTFExporter.d.ts +6 -0
- three/examples/jsm/exporters/USDZExporter.d.ts +4 -2
- three/examples/jsm/geometries/TeapotGeometry.d.ts +24 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +8 -6
- three/examples/jsm/lines/LineMaterial.d.ts +2 -4
- three/examples/jsm/loaders/DDSLoader.d.ts +8 -2
- three/examples/jsm/loaders/FontLoader.d.ts +1 -1
- three/examples/jsm/loaders/GLTFLoader.d.ts +12 -7
- three/examples/jsm/loaders/KTXLoader.d.ts +8 -2
- three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
- three/examples/jsm/loaders/PVRLoader.d.ts +2 -2
- three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +17 -10
- three/examples/jsm/nodes/Nodes.d.ts +21 -57
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +4 -22
- three/examples/jsm/nodes/accessors/BufferAttributeNode.d.ts +50 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +3 -4
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +11 -20
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +4 -1
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +3 -0
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +1 -2
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +9 -17
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +6 -26
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +3 -4
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +3 -8
- three/examples/jsm/nodes/accessors/RendererReferenceNode.d.ts +2 -3
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +16 -4
- three/examples/jsm/nodes/accessors/StorageTextureNode.d.ts +40 -0
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +8 -23
- three/examples/jsm/nodes/accessors/Texture3DNode.d.ts +16 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/UVNode.d.ts +1 -8
- three/examples/jsm/nodes/accessors/UniformsNode.d.ts +0 -2
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +4 -3
- three/examples/jsm/nodes/code/CodeNode.d.ts +0 -1
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +2 -3
- three/examples/jsm/nodes/core/AttributeNode.d.ts +11 -4
- three/examples/jsm/nodes/core/CacheNode.d.ts +4 -5
- three/examples/jsm/nodes/core/ConstNode.d.ts +1 -2
- three/examples/jsm/nodes/core/InputNode.d.ts +1 -2
- three/examples/jsm/nodes/core/LightingModel.d.ts +11 -0
- three/examples/jsm/nodes/core/Node.d.ts +102 -42
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +7 -4
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +30 -26
- three/examples/jsm/nodes/core/NodeCache.d.ts +48 -6
- three/examples/jsm/nodes/core/NodeFunction.d.ts +2 -2
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +10 -7
- three/examples/jsm/nodes/core/NodeParser.d.ts +4 -4
- three/examples/jsm/nodes/core/NodeUniform.d.ts +8 -11
- three/examples/jsm/nodes/core/NodeVar.d.ts +5 -4
- three/examples/jsm/nodes/core/NodeVarying.d.ts +5 -6
- three/examples/jsm/nodes/core/PropertyNode.d.ts +4 -4
- three/examples/jsm/nodes/core/StackNode.d.ts +7 -1
- three/examples/jsm/nodes/core/StructTypeNode.d.ts +8 -0
- three/examples/jsm/nodes/core/TempNode.d.ts +1 -2
- three/examples/jsm/nodes/core/UniformGroup.d.ts +7 -0
- three/examples/jsm/nodes/core/UniformGroupNode.d.ts +21 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +16 -11
- three/examples/jsm/nodes/core/VarNode.d.ts +2 -0
- three/examples/jsm/nodes/core/VaryingNode.d.ts +4 -0
- three/examples/jsm/nodes/core/constants.d.ts +27 -79
- three/examples/jsm/nodes/display/DepthOfFieldNode.d.ts +30 -0
- three/examples/jsm/nodes/display/DotScreenNode.d.ts +32 -0
- three/examples/jsm/nodes/display/PassNode.d.ts +1 -1
- three/examples/jsm/nodes/display/RGBShiftNode.d.ts +24 -0
- three/examples/jsm/nodes/display/SobelOperatorNode.d.ts +17 -0
- three/examples/jsm/nodes/display/ViewportDepthNode.d.ts +4 -6
- three/examples/jsm/nodes/functions/BSDF/LTC.d.ts +9 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +2 -0
- three/examples/jsm/nodes/functions/ToonLightingModel.d.ts +4 -0
- three/examples/jsm/nodes/lighting/RectAreaLightNode.d.ts +10 -0
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +3 -3
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +2 -3
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +2 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +3 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
- three/examples/jsm/nodes/materials/MeshMatcapNodeMaterial.d.ts +28 -0
- three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.d.ts +2 -0
- three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +7 -4
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +24 -17
- three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +6 -7
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +8 -5
- three/examples/jsm/nodes/materials/MeshToonNodeMaterial.d.ts +38 -0
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +41 -37
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +1 -0
- three/examples/jsm/nodes/materials/ShadowNodeMaterial.d.ts +1 -0
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +3 -3
- three/examples/jsm/nodes/materials/VolumeNodeMaterial.d.ts +10 -0
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +1 -0
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +230 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +5 -1
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +58 -36
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +2 -3
- three/examples/jsm/nodes/utils/DiscardNode.d.ts +1 -0
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/SplitNode.d.ts +1 -1
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +4 -5
- three/examples/jsm/objects/Sky.d.ts +18 -0
- three/examples/jsm/renderers/common/Animation.d.ts +14 -0
- three/examples/jsm/renderers/common/Attributes.d.ts +20 -0
- three/examples/jsm/renderers/common/Background.d.ts +22 -0
- three/examples/jsm/renderers/common/BindGroup.d.ts +9 -0
- three/examples/jsm/renderers/common/Binding.d.ts +8 -0
- three/examples/jsm/renderers/common/Bindings.d.ts +42 -0
- three/examples/jsm/renderers/common/Buffer.d.ts +11 -0
- three/examples/jsm/renderers/common/BufferUtils.d.ts +4 -0
- three/examples/jsm/renderers/common/ChainMap.d.ts +9 -0
- three/examples/jsm/renderers/common/ClippingContext.d.ts +18 -0
- three/examples/jsm/renderers/common/Color4.d.ts +6 -5
- three/examples/jsm/renderers/common/ComputePipeline.d.ts +8 -0
- three/examples/jsm/renderers/common/Constants.d.ts +9 -0
- three/examples/jsm/renderers/common/CubeRenderTarget.d.ts +7 -0
- three/examples/jsm/renderers/common/DataMap.d.ts +20 -0
- three/examples/jsm/renderers/common/Geometries.d.ts +28 -0
- three/examples/jsm/renderers/common/Info.d.ts +25 -13
- three/examples/jsm/renderers/common/Pipeline.d.ts +6 -0
- three/examples/jsm/renderers/common/Pipelines.d.ts +68 -0
- three/examples/jsm/renderers/common/PostProcessing.d.ts +2 -0
- three/examples/jsm/renderers/common/ProgrammableStage.d.ts +15 -0
- three/examples/jsm/renderers/common/RenderBundle.d.ts +8 -0
- three/examples/jsm/renderers/common/RenderBundles.d.ts +10 -0
- three/examples/jsm/renderers/common/RenderContext.d.ts +38 -0
- three/examples/jsm/renderers/common/RenderContexts.d.ts +13 -0
- three/examples/jsm/renderers/common/RenderList.d.ts +62 -0
- three/examples/jsm/renderers/common/RenderLists.d.ts +10 -0
- three/examples/jsm/renderers/common/RenderObject.d.ts +73 -0
- three/examples/jsm/renderers/common/RenderObjects.d.ts +59 -0
- three/examples/jsm/renderers/common/RenderPipeline.d.ts +8 -0
- three/examples/jsm/renderers/common/Renderer.d.ts +186 -208
- three/examples/jsm/renderers/common/SampledTexture.d.ts +27 -0
- three/examples/jsm/renderers/common/Sampler.d.ts +11 -0
- three/examples/jsm/renderers/common/StorageBufferAttribute.d.ts +7 -0
- three/examples/jsm/renderers/common/StorageInstancedBufferAttribute.d.ts +7 -0
- three/examples/jsm/renderers/common/Textures.d.ts +64 -0
- three/examples/jsm/renderers/common/Uniform.d.ts +40 -0
- three/examples/jsm/renderers/common/UniformBuffer.d.ts +6 -0
- three/examples/jsm/renderers/common/UniformsGroup.d.ts +32 -0
- three/examples/jsm/renderers/common/nodes/NodeBuilderState.d.ts +30 -0
- three/examples/jsm/renderers/common/nodes/NodeSampledTexture.d.ts +29 -0
- three/examples/jsm/renderers/common/nodes/NodeSampler.d.ts +12 -0
- three/examples/jsm/renderers/common/nodes/NodeUniform.d.ts +63 -0
- three/examples/jsm/renderers/common/nodes/NodeUniformsGroup.d.ts +11 -0
- three/examples/jsm/renderers/common/nodes/Nodes.d.ts +95 -0
- three/examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +123 -0
- three/examples/jsm/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +6 -0
- three/examples/jsm/renderers/webgpu/nodes/WGSLNodeParser.d.ts +6 -0
- three/examples/jsm/renderers/webgpu/utils/WebGPUConstants.d.ts +328 -0
- three/examples/jsm/utils/SceneUtils.d.ts +9 -3
- three/package.json +4 -4
- three/src/Three.d.ts +1 -0
- three/src/animation/tracks/StringKeyframeTrack.d.ts +1 -2
- three/src/constants.d.ts +6 -0
- three/src/core/BufferGeometry.d.ts +19 -17
- three/src/core/InterleavedBuffer.d.ts +2 -0
- three/src/extras/ShapeUtils.d.ts +5 -8
- three/src/extras/TextureUtils.d.ts +42 -0
- three/src/lights/LightShadow.d.ts +5 -0
- three/src/loaders/LoaderUtils.d.ts +9 -6
- three/src/materials/Material.d.ts +21 -12
- three/src/math/Color.d.ts +1 -1
- three/src/math/Matrix3.d.ts +2 -0
- three/src/math/Matrix4.d.ts +2 -0
- three/src/math/Vector4.d.ts +6 -0
- three/src/objects/BatchedMesh.d.ts +66 -47
- three/src/objects/InstancedMesh.d.ts +3 -3
- three/src/renderers/WebGLRenderer.d.ts +41 -19
- three/src/renderers/shaders/UniformsLib.d.ts +3 -0
- three/src/renderers/webgl/WebGLPrograms.d.ts +1 -1
- three/src/renderers/webxr/WebXRDepthSensing.d.ts +3 -1
- three/src/renderers/webxr/WebXRManager.d.ts +33 -23
- three/src/textures/CompressedArrayTexture.d.ts +36 -19
- three/src/textures/CompressedTexture.d.ts +16 -8
- three/src/textures/DataArrayTexture.d.ts +37 -20
- three/src/textures/FramebufferTexture.d.ts +1 -1
- three/src/textures/Texture.d.ts +3 -1
- three/src/utils.d.ts +2 -0
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -17
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -37
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -3
|
@@ -36,24 +36,6 @@ import { Texture3DImageData } from "./types.js";
|
|
|
36
36
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/textures/DataArrayTexture.js | Source}
|
|
37
37
|
*/
|
|
38
38
|
export class DataArrayTexture extends Texture {
|
|
39
|
-
/**
|
|
40
|
-
* This creates a new {@link THREE.DataArrayTexture | DataArrayTexture} object.
|
|
41
|
-
* @remarks The interpretation of the data depends on {@link format} and {@link type}.
|
|
42
|
-
* @remarks If the {@link type} is {@link THREE.UnsignedByteType}, a {@link Uint8Array} will be useful for addressing the texel data
|
|
43
|
-
* @remarks If the {@link format} is {@link THREE.RGBAFormat}, data needs four values for one texel; Red, Green, Blue and Alpha (typically the opacity).
|
|
44
|
-
* @remarks For the packed {@link type | types}, {@link THREE.UnsignedShort4444Type} and {@link THREE.UnsignedShort5551Type}
|
|
45
|
-
* all color components of one texel can be addressed as bitfields within an integer element of a {@link Uint16Array}.
|
|
46
|
-
* @remarks In order to use the {@link type | types} {@link THREE.FloatType} and {@link THREE.HalfFloatType},
|
|
47
|
-
* the WebGL implementation must support the respective extensions _OES_texture_float_ and _OES_texture_half_float_
|
|
48
|
-
* @remarks In order to use {@link THREE.LinearFilter} for component-wise, bilinear interpolation of the texels based on these types,
|
|
49
|
-
* the WebGL extensions _OES_texture_float_linear_ or _OES_texture_half_float_linear_ must also be present.
|
|
50
|
-
* @param data {@link https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView | ArrayBufferView} of the texture. Default `null`.
|
|
51
|
-
* @param width Width of the texture. Default `1`.
|
|
52
|
-
* @param height Height of the texture. Default `1`.
|
|
53
|
-
* @param depth Depth of the texture. Default `1`.
|
|
54
|
-
*/
|
|
55
|
-
constructor(data?: BufferSource | null, width?: number, height?: number, depth?: number);
|
|
56
|
-
|
|
57
39
|
/**
|
|
58
40
|
* Read-only flag to check if a given object is of type {@link DataArrayTexture}.
|
|
59
41
|
* @remarks This is a _constant_ value
|
|
@@ -90,17 +72,52 @@ export class DataArrayTexture extends Texture {
|
|
|
90
72
|
* @override
|
|
91
73
|
* @defaultValue `false`
|
|
92
74
|
*/
|
|
93
|
-
|
|
75
|
+
generateMipmaps: boolean;
|
|
94
76
|
|
|
95
77
|
/**
|
|
96
78
|
* @override
|
|
97
79
|
* @defaultValue `false`
|
|
98
80
|
*/
|
|
99
|
-
|
|
81
|
+
flipY: boolean;
|
|
100
82
|
|
|
101
83
|
/**
|
|
102
84
|
* @override
|
|
103
85
|
* @defaultValue `1`
|
|
104
86
|
*/
|
|
105
87
|
unpackAlignment: number;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A set of all layers which need to be updated in the texture. See {@link DataArrayTexture.addLayerUpdate}.
|
|
91
|
+
*/
|
|
92
|
+
layerUpdates: Set<number>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* This creates a new {@link THREE.DataArrayTexture | DataArrayTexture} object.
|
|
96
|
+
* @remarks The interpretation of the data depends on {@link format} and {@link type}.
|
|
97
|
+
* @remarks If the {@link type} is {@link THREE.UnsignedByteType}, a {@link Uint8Array} will be useful for addressing the texel data
|
|
98
|
+
* @remarks If the {@link format} is {@link THREE.RGBAFormat}, data needs four values for one texel; Red, Green, Blue and Alpha (typically the opacity).
|
|
99
|
+
* @remarks For the packed {@link type | types}, {@link THREE.UnsignedShort4444Type} and {@link THREE.UnsignedShort5551Type}
|
|
100
|
+
* all color components of one texel can be addressed as bitfields within an integer element of a {@link Uint16Array}.
|
|
101
|
+
* @remarks In order to use the {@link type | types} {@link THREE.FloatType} and {@link THREE.HalfFloatType},
|
|
102
|
+
* the WebGL implementation must support the respective extensions _OES_texture_float_ and _OES_texture_half_float_
|
|
103
|
+
* @remarks In order to use {@link THREE.LinearFilter} for component-wise, bilinear interpolation of the texels based on these types,
|
|
104
|
+
* the WebGL extensions _OES_texture_float_linear_ or _OES_texture_half_float_linear_ must also be present.
|
|
105
|
+
* @param data {@link https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView | ArrayBufferView} of the texture. Default `null`.
|
|
106
|
+
* @param width Width of the texture. Default `1`.
|
|
107
|
+
* @param height Height of the texture. Default `1`.
|
|
108
|
+
* @param depth Depth of the texture. Default `1`.
|
|
109
|
+
*/
|
|
110
|
+
constructor(data?: BufferSource | null, width?: number, height?: number, depth?: number);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Describes that a specific layer of the texture needs to be updated. Normally when {@link Texture.needsUpdate} is
|
|
114
|
+
* set to true, the entire compressed texture array is sent to the GPU. Marking specific layers will only transmit
|
|
115
|
+
* subsets of all mipmaps associated with a specific depth in the array which is often much more performant.
|
|
116
|
+
*/
|
|
117
|
+
addLayerUpdate(layerIndex: number): void;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Resets the layer updates registry. See {@link DataArrayTexture.addLayerUpdate}.
|
|
121
|
+
*/
|
|
122
|
+
clearLayoutUpdates(): void;
|
|
106
123
|
}
|
|
@@ -21,7 +21,7 @@ import { Texture } from "./Texture.js";
|
|
|
21
21
|
* renderer.render( scene, camera );
|
|
22
22
|
*
|
|
23
23
|
* // copy part of the rendered frame into the framebuffer texture
|
|
24
|
-
* renderer.copyFramebufferToTexture(
|
|
24
|
+
* renderer.copyFramebufferToTexture( frameTexture, vector );
|
|
25
25
|
* ```
|
|
26
26
|
* @see Example: {@link https://threejs.org/examples/#webgl_framebuffer_texture | webgl_framebuffer_texture}
|
|
27
27
|
* @see {@link https://threejs.org/docs/index.html#api/en/textures/FramebufferTexture | Official Documentation}
|
three/src/textures/Texture.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
import { EventDispatcher } from "../core/EventDispatcher.js";
|
|
14
14
|
import { Matrix3 } from "../math/Matrix3.js";
|
|
15
15
|
import { Vector2 } from "../math/Vector2.js";
|
|
16
|
+
import { CompressedTextureMipmap } from "./CompressedTexture.js";
|
|
17
|
+
import { CubeTexture } from "./CubeTexture.js";
|
|
16
18
|
import { Source } from "./Source.js";
|
|
17
19
|
|
|
18
20
|
/** Shim for OffscreenCanvas. */
|
|
@@ -127,7 +129,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
127
129
|
* Array of user-specified mipmaps
|
|
128
130
|
* @defaultValue `[]`
|
|
129
131
|
*/
|
|
130
|
-
mipmaps:
|
|
132
|
+
mipmaps: CompressedTextureMipmap[] | CubeTexture[] | HTMLCanvasElement[] | undefined;
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* How the image is applied to the object.
|
three/src/utils.d.ts
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Node from "../../../nodes/core/Node.js";
|
|
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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Object3D, Renderer } from "three";
|
|
2
|
-
import { NodeShaderStage } from "../../../nodes/core/constants.js";
|
|
3
|
-
import Node from "../../../nodes/core/Node.js";
|
|
4
|
-
import NodeBuilder from "../../../nodes/core/NodeBuilder.js";
|
|
5
|
-
import SlotNode from "./SlotNode.js";
|
|
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: NodeShaderStage, slotNode: SlotNode): Node;
|
|
15
|
-
|
|
16
|
-
getUniforms(shaderStage: string): string;
|
|
17
|
-
|
|
18
|
-
getAttributes(shaderStage: string): string;
|
|
19
|
-
|
|
20
|
-
getVarys(shaderStage: string): string;
|
|
21
|
-
|
|
22
|
-
addCode(shaderStage: string, source: string, code: string, scope?: this): string;
|
|
23
|
-
addCodeAfterInclude(shaderStage: string, snippet: string, code: string): string;
|
|
24
|
-
|
|
25
|
-
replaceCode(shaderStage: string, source: string, target: string, scope?: this): void;
|
|
26
|
-
parseInclude(shaderStage: string, ...includes: string[]): void;
|
|
27
|
-
|
|
28
|
-
getInstanceIndex(): string;
|
|
29
|
-
getFrontFacing(): string;
|
|
30
|
-
getFragCoord(): "gl_FragCoord";
|
|
31
|
-
isFlipY(): true;
|
|
32
|
-
|
|
33
|
-
buildCode(): void;
|
|
34
|
-
build(): this;
|
|
35
|
-
|
|
36
|
-
getSlot(shaderStage: string, name: string): Node;
|
|
37
|
-
}
|