Skip to content

Commit 4b10c8c

Browse files
committed
add in option to convert raw GLSL shader park files
1 parent f4488dd commit 4b10c8c

9 files changed

+7
-1
lines changed

convertSPCodeToTD.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
const fs = require('fs');
22
const converters = require('shader-park-core');
33
const src = process.argv[2];
4-
console.log(JSON.stringify(converters.sculptToTouchDesignerShaderSource(src)));
4+
const useGLSL = process.argv[3];
5+
if(useGLSL) {
6+
console.log(JSON.stringify(converters.glslToTouchDesignerShaderSource(src)));
7+
} else {
8+
console.log(JSON.stringify(converters.sculptToTouchDesignerShaderSource(src)));
9+
}
10+

dist/Backup/Shader Park TD.141.toe

318 KB
Binary file not shown.

dist/Backup/Shader Park TD.142.toe

319 KB
Binary file not shown.

dist/Backup/Shader Park TD.143.toe

319 KB
Binary file not shown.

dist/Backup/Shader Park TD.144.toe

319 KB
Binary file not shown.

dist/Shader Park TD.145.toe

319 KB
Binary file not shown.

dist/Shader Park TD.toe

112 Bytes
Binary file not shown.

dist/shader-park-core.zip

-1.43 KB
Binary file not shown.

0 commit comments

Comments
 (0)