@triforge/shader-core 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +26 -1
- package/dist/core/CompileContext.d.ts.map +1 -1
- package/dist/core/CompileContext.js +33 -27
- package/dist/core/glslIdentifier.d.ts +17 -0
- package/dist/core/glslIdentifier.d.ts.map +1 -0
- package/dist/core/glslIdentifier.js +37 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/nodes/input/Attribute.d.ts +1 -1
- package/dist/nodes/input/Attribute.d.ts.map +1 -1
- package/dist/nodes/input/Attribute.js +8 -1
- package/dist/nodes/input/CameraData.d.ts +1 -1
- package/dist/nodes/input/ColorAttribute.d.ts +1 -1
- package/dist/nodes/input/Geometry.d.ts +1 -1
- package/dist/nodes/input/HairInfo.d.ts +1 -1
- package/dist/nodes/input/LayerWeight.d.ts +1 -1
- package/dist/nodes/input/LightPath.d.ts +1 -1
- package/dist/nodes/input/ObjectInfo.d.ts +1 -1
- package/dist/nodes/input/OceanAttribute.d.ts +1 -1
- package/dist/nodes/input/ParticleInfo.d.ts +1 -1
- package/dist/nodes/input/RGB.d.ts +1 -1
- package/dist/nodes/input/ScreenCamera.d.ts +1 -1
- package/dist/nodes/input/Tangent.d.ts +1 -1
- package/dist/nodes/input/TextureCoordinate.d.ts +1 -1
- package/dist/nodes/input/UVMap.d.ts +1 -1
- package/dist/nodes/input/Value.d.ts +1 -1
- package/dist/nodes/input/Wireframe.d.ts +1 -1
- package/dist/nodes/output/MaterialOutput.d.ts +1 -1
- package/dist/nodes/output/ScreenOutput.d.ts +1 -1
- package/dist/nodes/process/AddShader.d.ts +1 -1
- package/dist/nodes/process/AnimatedNoiseTexture.d.ts +1 -1
- package/dist/nodes/process/Blackbody.d.ts +1 -1
- package/dist/nodes/process/BrickTexture.d.ts +1 -1
- package/dist/nodes/process/BrightContrast.d.ts +1 -1
- package/dist/nodes/process/Bump.d.ts +1 -1
- package/dist/nodes/process/CheckerTexture.d.ts +1 -1
- package/dist/nodes/process/Clamp.d.ts +1 -1
- package/dist/nodes/process/ColorRamp.d.ts +1 -1
- package/dist/nodes/process/CombineColor.d.ts +1 -1
- package/dist/nodes/process/CombineRGB.d.ts +1 -1
- package/dist/nodes/process/CombineXYZ.d.ts +1 -1
- package/dist/nodes/process/DiffuseBSDF.d.ts +1 -1
- package/dist/nodes/process/Emission.d.ts +1 -1
- package/dist/nodes/process/EnvironmentTexture.d.ts +1 -1
- package/dist/nodes/process/EnvironmentTexture.d.ts.map +1 -1
- package/dist/nodes/process/EnvironmentTexture.js +2 -0
- package/dist/nodes/process/FloatCurve.d.ts +1 -1
- package/dist/nodes/process/Fresnel.d.ts +1 -1
- package/dist/nodes/process/Gamma.d.ts +1 -1
- package/dist/nodes/process/GlassBSDF.d.ts +1 -1
- package/dist/nodes/process/GlossyBSDF.d.ts +1 -1
- package/dist/nodes/process/GradientTexture.d.ts +1 -1
- package/dist/nodes/process/HashValue.d.ts +1 -1
- package/dist/nodes/process/HueSaturationValue.d.ts +1 -1
- package/dist/nodes/process/ImageTexture.d.ts +1 -1
- package/dist/nodes/process/ImageTexture.d.ts.map +1 -1
- package/dist/nodes/process/ImageTexture.js +2 -0
- package/dist/nodes/process/InvertColor.d.ts +1 -1
- package/dist/nodes/process/MagicTexture.d.ts +1 -1
- package/dist/nodes/process/MapRange.d.ts +1 -1
- package/dist/nodes/process/Mapping.d.ts +1 -1
- package/dist/nodes/process/Math.d.ts +1 -1
- package/dist/nodes/process/MixRGB.d.ts +1 -1
- package/dist/nodes/process/MixShader.d.ts +1 -1
- package/dist/nodes/process/MusgraveTexture.d.ts +1 -1
- package/dist/nodes/process/NoiseTexture.d.ts +1 -1
- package/dist/nodes/process/Normal.d.ts +1 -1
- package/dist/nodes/process/NormalMap.d.ts +1 -1
- package/dist/nodes/process/PrincipledBSDF.d.ts +1 -1
- package/dist/nodes/process/PrincipledHair.d.ts +1 -1
- package/dist/nodes/process/PrincipledVolume.d.ts +1 -1
- package/dist/nodes/process/RGBCurves.d.ts +1 -1
- package/dist/nodes/process/RGBtoBW.d.ts +1 -1
- package/dist/nodes/process/RefractionBSDF.d.ts +1 -1
- package/dist/nodes/process/SchwarzschildMarch.d.ts +1 -1
- package/dist/nodes/process/SeparateColor.d.ts +1 -1
- package/dist/nodes/process/SeparateRGB.d.ts +1 -1
- package/dist/nodes/process/SeparateXYZ.d.ts +1 -1
- package/dist/nodes/process/ShaderScript.d.ts +1 -1
- package/dist/nodes/process/ShaderToRGB.d.ts +1 -1
- package/dist/nodes/process/SheenBSDF.d.ts +1 -1
- package/dist/nodes/process/SpecularBSDF.d.ts +1 -1
- package/dist/nodes/process/SubsurfaceScattering.d.ts +1 -1
- package/dist/nodes/process/ToonBSDF.d.ts +1 -1
- package/dist/nodes/process/TranslucentBSDF.d.ts +1 -1
- package/dist/nodes/process/VectorCurves.d.ts +1 -1
- package/dist/nodes/process/VectorMath.d.ts +1 -1
- package/dist/nodes/process/VectorRotate.d.ts +1 -1
- package/dist/nodes/process/VectorTransform.d.ts +1 -1
- package/dist/nodes/process/VolumeAbsorption.d.ts +1 -1
- package/dist/nodes/process/VolumeScatter.d.ts +1 -1
- package/dist/nodes/process/VoronoiTexture.d.ts +1 -1
- package/dist/nodes/process/WaveTexture.d.ts +1 -1
- package/dist/nodes/process/Wavelength.d.ts +1 -1
- package/dist/nodes/process/WhiteNoise.d.ts +1 -1
- package/package.json +50 -50
|
@@ -21,7 +21,7 @@ export declare class CombineXYZ extends ProcessNode {
|
|
|
21
21
|
private readonly _inputs;
|
|
22
22
|
private readonly _outputs;
|
|
23
23
|
constructor(inputs?: CombineXYZInputs);
|
|
24
|
-
getInputSockets(): Record<string, import("../../
|
|
24
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
25
25
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
26
26
|
compileDefs(): string;
|
|
27
27
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class DiffuseBSDF extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: DiffuseBSDFInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class Emission extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: EmissionInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -33,7 +33,7 @@ export declare class EnvironmentTexture extends ProcessNode {
|
|
|
33
33
|
private readonly _inputs;
|
|
34
34
|
private readonly _outputs;
|
|
35
35
|
constructor(inputs: EnvironmentTextureInputs);
|
|
36
|
-
getInputSockets(): Record<string, import("../../
|
|
36
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
37
37
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
38
38
|
compileDefs(): string;
|
|
39
39
|
compileCall(ctx: CompileContext): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentTexture.d.ts","sourceRoot":"","sources":["../../../src/nodes/process/EnvironmentTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"EnvironmentTexture.d.ts","sourceRoot":"","sources":["../../../src/nodes/process/EnvironmentTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAIvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D,MAAM,WAAW,wBAAwB;IACvC,4GAA4G;IAC5G,MAAM,CAAC,EAAO,YAAY,CAAA;IAC1B,6DAA6D;IAC7D,WAAW,EAAG,MAAM,CAAA;IACpB,gFAAgF;IAChF,SAAS,CAAC,EAAI,MAAM,GAAG,YAAY,CAAA;CACpC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,IAAI,QAAQ,WAAkC;IAC9C,MAAM,CAAC,mBAAmB,UAAO;IAEjC,IAAI,QAAQ,IAAI,YAAY,CAE3B;IAED,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAQ;IACrC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2E;IACnG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmE;gBAEhF,MAAM,EAAE,wBAAwB;IAqB5C,eAAe;IACf,gBAAgB;IAEhB,WAAW,IAAI,MAAM;IAIrB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM;CAmBzC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ProcessNode } from '../../core/ProcessNode.js';
|
|
2
2
|
import { ShaderNodeError } from '../../core/ShaderNodeError.js';
|
|
3
3
|
import { ShaderConfig } from '../../core/ShaderConfig.js';
|
|
4
|
+
import { assertGlslIdentifier } from '../../core/glslIdentifier.js';
|
|
4
5
|
/**
|
|
5
6
|
* Environment Texture — Blender "Environment Texture" node equivalent.
|
|
6
7
|
* Samples a cubemap (THREE.CubeTexture or THREE.WebGLCubeRenderTarget) via a samplerCube uniform.
|
|
@@ -31,6 +32,7 @@ export class EnvironmentTexture extends ProcessNode {
|
|
|
31
32
|
fix: 'new EnvironmentTexture({ uniformName: "uEnv" })\n After compile(): mat.material.uniforms.uEnv = { value: cubeTexture }',
|
|
32
33
|
});
|
|
33
34
|
}
|
|
35
|
+
assertGlslIdentifier(inputs.uniformName, 'EnvironmentTexture uniformName');
|
|
34
36
|
this._uniformName = inputs.uniformName;
|
|
35
37
|
this._inputs = this.createInputs(inputs, {
|
|
36
38
|
vector: ['color', null],
|
|
@@ -25,7 +25,7 @@ export declare class FloatCurve extends ProcessNode {
|
|
|
25
25
|
private readonly _inputs;
|
|
26
26
|
private readonly _outputs;
|
|
27
27
|
constructor(inputs?: FloatCurveInputs);
|
|
28
|
-
getInputSockets(): Record<string, import("../../
|
|
28
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
29
29
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
30
30
|
compileDefs(): string;
|
|
31
31
|
compileCall(ctx: CompileContext): string;
|
|
@@ -28,7 +28,7 @@ export declare class Fresnel extends ProcessNode {
|
|
|
28
28
|
private readonly _inputs;
|
|
29
29
|
private readonly _outputs;
|
|
30
30
|
constructor(inputs?: FresnelInputs);
|
|
31
|
-
getInputSockets(): Record<string, import("../../
|
|
31
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
32
32
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
33
33
|
compileDefs(): string;
|
|
34
34
|
compileCall(ctx: CompileContext): string;
|
|
@@ -21,7 +21,7 @@ export declare class Gamma extends ProcessNode {
|
|
|
21
21
|
private readonly _inputs;
|
|
22
22
|
private readonly _outputs;
|
|
23
23
|
constructor(inputs?: GammaInputs);
|
|
24
|
-
getInputSockets(): Record<string, import("../../
|
|
24
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
25
25
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
26
26
|
compileDefs(): string;
|
|
27
27
|
compileCall(ctx: CompileContext): string;
|
|
@@ -23,7 +23,7 @@ export declare class GlassBSDF extends ProcessNode {
|
|
|
23
23
|
private readonly _inputs;
|
|
24
24
|
private readonly _outputs;
|
|
25
25
|
constructor(inputs?: GlassBSDFInputs);
|
|
26
|
-
getInputSockets(): Record<string, import("../../
|
|
26
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
27
27
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
28
28
|
compileDefs(): string;
|
|
29
29
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class GlossyBSDF extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: GlossyBSDFInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class GradientTexture extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: GradientTextureInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class HashValue extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: HashValueInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -24,7 +24,7 @@ export declare class HueSaturationValue extends ProcessNode {
|
|
|
24
24
|
private readonly _inputs;
|
|
25
25
|
private readonly _outputs;
|
|
26
26
|
constructor(inputs?: HueSaturationValueInputs);
|
|
27
|
-
getInputSockets(): Record<string, import("../../
|
|
27
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
28
28
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
29
29
|
compileDefs(): string;
|
|
30
30
|
compileCall(ctx: CompileContext): string;
|
|
@@ -26,7 +26,7 @@ export declare class ImageTexture extends ProcessNode {
|
|
|
26
26
|
private readonly _inputs;
|
|
27
27
|
private readonly _outputs;
|
|
28
28
|
constructor(inputs: ImageTextureInputs);
|
|
29
|
-
getInputSockets(): Record<string, import("../../
|
|
29
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
30
30
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
31
31
|
compileDefs(): string;
|
|
32
32
|
compileCall(ctx: CompileContext): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTexture.d.ts","sourceRoot":"","sources":["../../../src/nodes/process/ImageTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"ImageTexture.d.ts","sourceRoot":"","sources":["../../../src/nodes/process/ImageTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAIvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAK,YAAY,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,IAAI,QAAQ,WAA4B;IACxC,MAAM,CAAC,mBAAmB,UAAO;IAEjC,IAAI,QAAQ,IAAI,YAAY,CAE3B;IAED,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAQ;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2E;IACnG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmE;gBAEhF,MAAM,EAAE,kBAAkB;IAkBtC,eAAe;IACf,gBAAgB;IAEhB,WAAW,IAAI,MAAM;IAIrB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM;CAYzC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ProcessNode } from '../../core/ProcessNode.js';
|
|
2
2
|
import { ShaderNodeError } from '../../core/ShaderNodeError.js';
|
|
3
3
|
import { ShaderConfig } from '../../core/ShaderConfig.js';
|
|
4
|
+
import { assertGlslIdentifier } from '../../core/glslIdentifier.js';
|
|
4
5
|
/**
|
|
5
6
|
* Image Texture — Blender "Image Texture" node equivalent.
|
|
6
7
|
* Samples an external texture via a sampler2D uniform.
|
|
@@ -28,6 +29,7 @@ export class ImageTexture extends ProcessNode {
|
|
|
28
29
|
fix: 'new ImageTexture({ uniformName: "uMyTexture" })\n After compile(): mat.material.uniforms.uMyTexture = { value: texture }',
|
|
29
30
|
});
|
|
30
31
|
}
|
|
32
|
+
assertGlslIdentifier(inputs.uniformName, 'ImageTexture uniformName');
|
|
31
33
|
this.uniformName = inputs.uniformName;
|
|
32
34
|
this._inputs = this.createInputs(inputs, { vector: ['vector', null] });
|
|
33
35
|
this._outputs = this.createOutputs({ Color: 'color', Alpha: 'float' });
|
|
@@ -21,7 +21,7 @@ export declare class InvertColor extends ProcessNode {
|
|
|
21
21
|
private readonly _inputs;
|
|
22
22
|
private readonly _outputs;
|
|
23
23
|
constructor(inputs?: InvertColorInputs);
|
|
24
|
-
getInputSockets(): Record<string, import("../../
|
|
24
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
25
25
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
26
26
|
compileDefs(): string;
|
|
27
27
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class MagicTexture extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: MagicTextureInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -30,7 +30,7 @@ export declare class MapRange extends ProcessNode {
|
|
|
30
30
|
private readonly _inputs;
|
|
31
31
|
private readonly _outputs;
|
|
32
32
|
constructor(inputs?: MapRangeInputs);
|
|
33
|
-
getInputSockets(): Record<string, import("../../
|
|
33
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
34
34
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
35
35
|
compileDefs(): string;
|
|
36
36
|
compileCall(ctx: CompileContext): string;
|
|
@@ -29,7 +29,7 @@ export declare class Mapping extends ProcessNode {
|
|
|
29
29
|
private readonly _inputs;
|
|
30
30
|
private readonly _outputs;
|
|
31
31
|
constructor(inputs?: MappingInputs);
|
|
32
|
-
getInputSockets(): Record<string, import("../../
|
|
32
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
33
33
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
34
34
|
compileDefs(): string;
|
|
35
35
|
compileCall(ctx: CompileContext): string;
|
|
@@ -31,7 +31,7 @@ export declare class Math extends ProcessNode {
|
|
|
31
31
|
private readonly _inputs;
|
|
32
32
|
private readonly _outputs;
|
|
33
33
|
constructor(inputs: MathInputs);
|
|
34
|
-
getInputSockets(): Record<string, import("../../
|
|
34
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
35
35
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
36
36
|
compileDefs(): string;
|
|
37
37
|
compileCall(ctx: CompileContext): string;
|
|
@@ -27,7 +27,7 @@ export declare class MixRGB extends ProcessNode {
|
|
|
27
27
|
private readonly _inputs;
|
|
28
28
|
private readonly _outputs;
|
|
29
29
|
constructor(inputs?: MixRGBInputs);
|
|
30
|
-
getInputSockets(): Record<string, import("../../
|
|
30
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
31
31
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
32
32
|
compileDefs(): string;
|
|
33
33
|
compileCall(ctx: CompileContext): string;
|
|
@@ -27,7 +27,7 @@ export declare class MixShader extends ProcessNode {
|
|
|
27
27
|
private readonly _inputs;
|
|
28
28
|
private readonly _outputs;
|
|
29
29
|
constructor(inputs?: MixShaderInputs);
|
|
30
|
-
getInputSockets(): Record<string, import("../../
|
|
30
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
31
31
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
32
32
|
compileDefs(): string;
|
|
33
33
|
compileCall(ctx: CompileContext): string;
|
|
@@ -28,7 +28,7 @@ export declare class MusgraveTexture extends ProcessNode {
|
|
|
28
28
|
private readonly _inputs;
|
|
29
29
|
private readonly _outputs;
|
|
30
30
|
constructor(inputs?: MusgraveTextureInputs);
|
|
31
|
-
getInputSockets(): Record<string, import("../../
|
|
31
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
32
32
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
33
33
|
compileDefs(): string;
|
|
34
34
|
compileCall(ctx: CompileContext): string;
|
|
@@ -23,7 +23,7 @@ export declare class NoiseTexture extends ProcessNode {
|
|
|
23
23
|
private readonly _inputs;
|
|
24
24
|
private readonly _outputs;
|
|
25
25
|
constructor(inputs?: NoiseTextureInputs);
|
|
26
|
-
getInputSockets(): Record<string, import("../../
|
|
26
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
27
27
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
28
28
|
compileDefs(): string;
|
|
29
29
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class Normal extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: NormalInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -26,7 +26,7 @@ export declare class NormalMap extends ProcessNode {
|
|
|
26
26
|
private readonly _inputs;
|
|
27
27
|
private readonly _outputs;
|
|
28
28
|
constructor(inputs?: NormalMapInputs);
|
|
29
|
-
getInputSockets(): Record<string, import("../../
|
|
29
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
30
30
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
31
31
|
compileDefs(): string;
|
|
32
32
|
compileCall(ctx: CompileContext): string;
|
|
@@ -24,7 +24,7 @@ export declare class PrincipledBSDF extends ProcessNode {
|
|
|
24
24
|
private readonly _inputs;
|
|
25
25
|
private readonly _outputs;
|
|
26
26
|
constructor(inputs?: PrincipledBSDFInputs);
|
|
27
|
-
getInputSockets(): Record<string, import("../../
|
|
27
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
28
28
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
29
29
|
compileDefs(): string;
|
|
30
30
|
compileCall(ctx: CompileContext): string;
|
|
@@ -46,7 +46,7 @@ export declare class PrincipledHair extends ProcessNode {
|
|
|
46
46
|
private readonly _inputs;
|
|
47
47
|
private readonly _outputs;
|
|
48
48
|
constructor(inputs?: PrincipledHairInputs);
|
|
49
|
-
getInputSockets(): Record<string, import("../../
|
|
49
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
50
50
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
51
51
|
compileDefs(): string;
|
|
52
52
|
vertexInjections(): ({
|
|
@@ -29,7 +29,7 @@ export declare class PrincipledVolume extends ProcessNode {
|
|
|
29
29
|
private readonly _inputs;
|
|
30
30
|
private readonly _outputs;
|
|
31
31
|
constructor(inputs?: PrincipledVolumeInputs);
|
|
32
|
-
getInputSockets(): Record<string, import("../../
|
|
32
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
33
33
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
34
34
|
compileDefs(): string;
|
|
35
35
|
compileCall(ctx: CompileContext): string;
|
|
@@ -37,7 +37,7 @@ export declare class RGBCurves extends ProcessNode {
|
|
|
37
37
|
private readonly _inputs;
|
|
38
38
|
private readonly _outputs;
|
|
39
39
|
constructor(inputs?: RGBCurvesInputs);
|
|
40
|
-
getInputSockets(): Record<string, import("../../
|
|
40
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
41
41
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
42
42
|
compileDefs(): string;
|
|
43
43
|
compileCall(ctx: CompileContext): string;
|
|
@@ -20,7 +20,7 @@ export declare class RGBtoBW extends ProcessNode {
|
|
|
20
20
|
private readonly _inputs;
|
|
21
21
|
private readonly _outputs;
|
|
22
22
|
constructor(inputs?: RGBtoBWInputs);
|
|
23
|
-
getInputSockets(): Record<string, import("../../
|
|
23
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
24
24
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
25
25
|
compileDefs(): string;
|
|
26
26
|
compileCall(ctx: CompileContext): string;
|
|
@@ -24,7 +24,7 @@ export declare class RefractionBSDF extends ProcessNode {
|
|
|
24
24
|
private readonly _inputs;
|
|
25
25
|
private readonly _outputs;
|
|
26
26
|
constructor(inputs?: RefractionBSDFInputs);
|
|
27
|
-
getInputSockets(): Record<string, import("../../
|
|
27
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
28
28
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
29
29
|
compileDefs(): string;
|
|
30
30
|
compileCall(ctx: CompileContext): string;
|
|
@@ -48,7 +48,7 @@ export declare class SchwarzschildMarch extends ProcessNode {
|
|
|
48
48
|
private readonly _inputs;
|
|
49
49
|
private readonly _outputs;
|
|
50
50
|
constructor(inputs?: SchwarzschildMarchInputs);
|
|
51
|
-
getInputSockets(): Record<string, import("../../
|
|
51
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
52
52
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
53
53
|
compileDefs(): string;
|
|
54
54
|
compileCall(ctx: CompileContext): string;
|
|
@@ -25,7 +25,7 @@ export declare class SeparateColor extends ProcessNode {
|
|
|
25
25
|
private readonly _inputs;
|
|
26
26
|
private readonly _outputs;
|
|
27
27
|
constructor(inputs?: SeparateColorInputs);
|
|
28
|
-
getInputSockets(): Record<string, import("../../
|
|
28
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
29
29
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
30
30
|
compileDefs(): string;
|
|
31
31
|
compileCall(ctx: CompileContext): string;
|
|
@@ -19,7 +19,7 @@ export declare class SeparateRGB extends ProcessNode {
|
|
|
19
19
|
private readonly _inputs;
|
|
20
20
|
private readonly _outputs;
|
|
21
21
|
constructor(inputs?: SeparateRGBInputs);
|
|
22
|
-
getInputSockets(): Record<string, import("../../
|
|
22
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
23
23
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
24
24
|
compileDefs(): string;
|
|
25
25
|
compileCall(ctx: CompileContext): string;
|
|
@@ -19,7 +19,7 @@ export declare class SeparateXYZ extends ProcessNode {
|
|
|
19
19
|
private readonly _inputs;
|
|
20
20
|
private readonly _outputs;
|
|
21
21
|
constructor(inputs?: SeparateXYZInputs);
|
|
22
|
-
getInputSockets(): Record<string, import("../../
|
|
22
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
23
23
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
24
24
|
compileDefs(): string;
|
|
25
25
|
compileCall(ctx: CompileContext): string;
|
|
@@ -77,7 +77,7 @@ export declare class ShaderScript extends ProcessNode {
|
|
|
77
77
|
private readonly _inputs;
|
|
78
78
|
private readonly _outputs;
|
|
79
79
|
constructor(config: ShaderScriptConfig);
|
|
80
|
-
getInputSockets(): Record<string, import("../../
|
|
80
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
81
81
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
82
82
|
/** Emit any helper functions the user declared. */
|
|
83
83
|
compileDefs(): string;
|
|
@@ -20,7 +20,7 @@ export declare class ShaderToRGB extends ProcessNode {
|
|
|
20
20
|
private readonly _inputs;
|
|
21
21
|
private readonly _outputs;
|
|
22
22
|
constructor(inputs?: ShaderToRGBInputs);
|
|
23
|
-
getInputSockets(): Record<string, import("../../
|
|
23
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
24
24
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
25
25
|
compileDefs(): string;
|
|
26
26
|
compileCall(ctx: CompileContext): string;
|
|
@@ -23,7 +23,7 @@ export declare class SheenBSDF extends ProcessNode {
|
|
|
23
23
|
private readonly _inputs;
|
|
24
24
|
private readonly _outputs;
|
|
25
25
|
constructor(inputs?: SheenBSDFInputs);
|
|
26
|
-
getInputSockets(): Record<string, import("../../
|
|
26
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
27
27
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
28
28
|
compileDefs(): string;
|
|
29
29
|
compileCall(ctx: CompileContext): string;
|
|
@@ -24,7 +24,7 @@ export declare class SpecularBSDF extends ProcessNode {
|
|
|
24
24
|
private readonly _inputs;
|
|
25
25
|
private readonly _outputs;
|
|
26
26
|
constructor(inputs?: SpecularBSDFInputs);
|
|
27
|
-
getInputSockets(): Record<string, import("../../
|
|
27
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
28
28
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
29
29
|
compileDefs(): string;
|
|
30
30
|
compileCall(ctx: CompileContext): string;
|
|
@@ -25,7 +25,7 @@ export declare class SubsurfaceScattering extends ProcessNode {
|
|
|
25
25
|
private readonly _inputs;
|
|
26
26
|
private readonly _outputs;
|
|
27
27
|
constructor(inputs?: SubsurfaceScatteringInputs);
|
|
28
|
-
getInputSockets(): Record<string, import("../../
|
|
28
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
29
29
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
30
30
|
compileDefs(): string;
|
|
31
31
|
compileCall(ctx: CompileContext): string;
|
|
@@ -23,7 +23,7 @@ export declare class ToonBSDF extends ProcessNode {
|
|
|
23
23
|
private readonly _inputs;
|
|
24
24
|
private readonly _outputs;
|
|
25
25
|
constructor(inputs?: ToonBSDFInputs);
|
|
26
|
-
getInputSockets(): Record<string, import("../../
|
|
26
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
27
27
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
28
28
|
compileDefs(): string;
|
|
29
29
|
compileCall(ctx: CompileContext): string;
|
|
@@ -21,7 +21,7 @@ export declare class TranslucentBSDF extends ProcessNode {
|
|
|
21
21
|
private readonly _inputs;
|
|
22
22
|
private readonly _outputs;
|
|
23
23
|
constructor(inputs?: TranslucentBSDFInputs);
|
|
24
|
-
getInputSockets(): Record<string, import("../../
|
|
24
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
25
25
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
26
26
|
compileDefs(): string;
|
|
27
27
|
compileCall(ctx: CompileContext): string;
|
|
@@ -34,7 +34,7 @@ export declare class VectorCurves extends ProcessNode {
|
|
|
34
34
|
private readonly _inputs;
|
|
35
35
|
private readonly _outputs;
|
|
36
36
|
constructor(inputs?: VectorCurvesInputs);
|
|
37
|
-
getInputSockets(): Record<string, import("../../
|
|
37
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
38
38
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
39
39
|
compileDefs(): string;
|
|
40
40
|
compileCall(ctx: CompileContext): string;
|
|
@@ -28,7 +28,7 @@ export declare class VectorMath extends ProcessNode {
|
|
|
28
28
|
private readonly _inputs;
|
|
29
29
|
private readonly _outputs;
|
|
30
30
|
constructor(inputs: VectorMathInputs);
|
|
31
|
-
getInputSockets(): Record<string, import("../../
|
|
31
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
32
32
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
33
33
|
compileDefs(): string;
|
|
34
34
|
compileCall(ctx: CompileContext): string;
|
|
@@ -26,7 +26,7 @@ export declare class VectorRotate extends ProcessNode {
|
|
|
26
26
|
private readonly _inputs;
|
|
27
27
|
private readonly _outputs;
|
|
28
28
|
constructor(inputs?: VectorRotateInputs);
|
|
29
|
-
getInputSockets(): Record<string, import("../../
|
|
29
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
30
30
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
31
31
|
compileDefs(): string;
|
|
32
32
|
compileCall(ctx: CompileContext): string;
|
|
@@ -28,7 +28,7 @@ export declare class VectorTransform extends ProcessNode {
|
|
|
28
28
|
private readonly _inputs;
|
|
29
29
|
private readonly _outputs;
|
|
30
30
|
constructor(inputs?: VectorTransformInputs);
|
|
31
|
-
getInputSockets(): Record<string, import("../../
|
|
31
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
32
32
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
33
33
|
compileDefs(): string;
|
|
34
34
|
compileCall(ctx: CompileContext): string;
|
|
@@ -22,7 +22,7 @@ export declare class VolumeAbsorption extends ProcessNode {
|
|
|
22
22
|
private readonly _inputs;
|
|
23
23
|
private readonly _outputs;
|
|
24
24
|
constructor(inputs?: VolumeAbsorptionInputs);
|
|
25
|
-
getInputSockets(): Record<string, import("../../
|
|
25
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
26
26
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
27
27
|
compileDefs(): string;
|
|
28
28
|
compileCall(ctx: CompileContext): string;
|
|
@@ -23,7 +23,7 @@ export declare class VolumeScatter extends ProcessNode {
|
|
|
23
23
|
private readonly _inputs;
|
|
24
24
|
private readonly _outputs;
|
|
25
25
|
constructor(inputs?: VolumeScatterInputs);
|
|
26
|
-
getInputSockets(): Record<string, import("../../
|
|
26
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
27
27
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
28
28
|
compileDefs(): string;
|
|
29
29
|
compileCall(ctx: CompileContext): string;
|
|
@@ -30,7 +30,7 @@ export declare class VoronoiTexture extends ProcessNode {
|
|
|
30
30
|
private readonly _inputs;
|
|
31
31
|
private readonly _outputs;
|
|
32
32
|
constructor(inputs?: VoronoiTextureInputs);
|
|
33
|
-
getInputSockets(): Record<string, import("../../
|
|
33
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
34
34
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
35
35
|
compileDefs(): string;
|
|
36
36
|
compileCall(ctx: CompileContext): string;
|
|
@@ -31,7 +31,7 @@ export declare class WaveTexture extends ProcessNode {
|
|
|
31
31
|
private readonly _inputs;
|
|
32
32
|
private readonly _outputs;
|
|
33
33
|
constructor(inputs?: WaveTextureInputs);
|
|
34
|
-
getInputSockets(): Record<string, import("../../
|
|
34
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
35
35
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
36
36
|
compileDefs(): string;
|
|
37
37
|
compileCall(ctx: CompileContext): string;
|
|
@@ -20,7 +20,7 @@ export declare class Wavelength extends ProcessNode {
|
|
|
20
20
|
private readonly _inputs;
|
|
21
21
|
private readonly _outputs;
|
|
22
22
|
constructor(inputs?: WavelengthInputs);
|
|
23
|
-
getInputSockets(): Record<string, import("../../
|
|
23
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
24
24
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
25
25
|
compileDefs(): string;
|
|
26
26
|
compileCall(ctx: CompileContext): string;
|
|
@@ -19,7 +19,7 @@ export declare class WhiteNoise extends ProcessNode {
|
|
|
19
19
|
private readonly _inputs;
|
|
20
20
|
private readonly _outputs;
|
|
21
21
|
constructor(inputs?: WhiteNoiseInputs);
|
|
22
|
-
getInputSockets(): Record<string, import("../../
|
|
22
|
+
getInputSockets(): Record<string, import("../../index.js").InputSocket<unknown>>;
|
|
23
23
|
getOutputSockets(): Record<string, OutputSocket>;
|
|
24
24
|
compileDefs(): string;
|
|
25
25
|
compileCall(ctx: CompileContext): string;
|