@shaderfrog/core 1.3.9 → 1.4.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.
- package/graph/data-nodes.d.ts +3 -4
- package/package.json +1 -1
package/graph/data-nodes.d.ts
CHANGED
|
@@ -22,14 +22,13 @@ export type AssetVersionNodeData = {
|
|
|
22
22
|
assetId: number;
|
|
23
23
|
versionId: number;
|
|
24
24
|
};
|
|
25
|
-
export type TextureNodeData = string | number | AssetVersionNodeData;
|
|
26
25
|
export interface TextureNode extends BaseNode {
|
|
27
26
|
type: 'texture';
|
|
28
|
-
value:
|
|
27
|
+
value: AssetVersionNodeData;
|
|
29
28
|
}
|
|
30
|
-
export declare const textureNode: (id: string, name: string, position: NodePosition, value:
|
|
29
|
+
export declare const textureNode: (id: string, name: string, position: NodePosition, value: AssetVersionNodeData) => TextureNode;
|
|
31
30
|
export type TextureDataUniform = Pick<TextureNode, 'type' | 'value' | 'name'>;
|
|
32
|
-
export declare const textureUniformData: (name: string, value:
|
|
31
|
+
export declare const textureUniformData: (name: string, value: AssetVersionNodeData) => TextureDataUniform;
|
|
33
32
|
export interface SamplerCubeNode extends BaseNode {
|
|
34
33
|
type: 'samplerCube';
|
|
35
34
|
value: string;
|