-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.js
99 lines (88 loc) · 2.21 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import {
glslToThreeJSShaderSource,
glslToThreeJSMaterial,
glslToThreeJSMesh,
sculptToThreeJSShaderSource,
sculptToThreeJSMaterial,
sculptToThreeJSMesh,
createSculpture,
createSculptureWithGeometry
} from './targets/threeJS.js'
import {
glslToOfflineRenderer,
sculptToOfflineRenderer
} from './targets/offlineRenderer.js'
import {
sculptToMinimalRenderer,
glslToMinimalRenderer,
generatedGLSLToMinimalRenderer,
fragToMinimalRenderer,
sculptToFullGLSLSource
} from './targets/minimalRenderer.js'
import {
sculptToHydraRenderer,
sculptToHydraGLSL,
} from './targets/hydraRenderer.js'
import {
sculptToMinimalHTMLRenderer,
glslToMinimalHTMLRenderer,
} from './targets/minimalHTMLRenderer.js'
import {
sculptToRawSDF4Meshing
} from './targets/rawSDF4Meshing.js'
import {
glslToTouchDesignerShaderSource,
sculptToTouchDesignerShaderSource
} from './targets/touchDesigner.js'
import {
defaultFragSourceGLSL,
usePBRHeader,
useHemisphereLight,
sculptureStarterCode,
minimalHeader,
minimalVertexSource,
fragFooter
} from './glsl/glsl-lib.js'
import {
bindStaticData,
sculptToGLSL,
baseUniforms,
uniformsToGLSL
} from './generators/sculpt.js'
console.log('using shader-park-core version: [VI]{version}[/VI]');
/// Generate code for various targets
export {
glslToThreeJSShaderSource,
glslToThreeJSMaterial,
glslToThreeJSMesh,
sculptToThreeJSShaderSource,
sculptToThreeJSMaterial,
sculptToThreeJSMesh,
createSculptureWithGeometry,
createSculpture,
bindStaticData,
glslToOfflineRenderer,
sculptToOfflineRenderer,
glslToTouchDesignerShaderSource,
sculptToTouchDesignerShaderSource,
sculptToMinimalRenderer,
generatedGLSLToMinimalRenderer,
sculptToMinimalHTMLRenderer,
glslToMinimalRenderer,
sculptToHydraRenderer,
sculptToHydraGLSL,
glslToMinimalHTMLRenderer,
sculptToRawSDF4Meshing,
defaultFragSourceGLSL,
fragToMinimalRenderer,
sculptToGLSL,
sculptToFullGLSLSource,
baseUniforms,
uniformsToGLSL,
usePBRHeader,
useHemisphereLight,
sculptureStarterCode,
minimalHeader,
minimalVertexSource,
fragFooter
}