This repository has been archived by the owner on Nov 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathalloy.glslfx
131 lines (107 loc) · 6.74 KB
/
alloy.glslfx
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sbsbatchnode SYSTEM "glslfx.dtd">
<glslfx version="1.0.0" author="rustltd.com">
<!-- TECHNIQUES -->
<technique name="Parallax Occlusion">
<!-- PROPERTIES -->
<property name="blend_enabled" value="true"/>
<property name="blend_func" value="src_alpha,one_minus_src_alpha"/>
<property name="cull_face_enabled" value="true"/>
<property name="cull_face_mode" value="back"/>
<!-- SHADERS -->
<shader type="vertex" filename="common/parallax/vs.glsl"/>
<shader type="fragment" filename="alloy/fs.glsl"/>
<!-- UNIFORMS -->
<uniform name="parallax_mode" guiName="Parallax Mode" min="0" max="0" />
</technique>
<technique name="Tessellation">
<!-- PROPERTIES -->
<property name="blend_enabled" value="true"/>
<property name="blend_func" value="src_alpha,one_minus_src_alpha"/>
<property name="cull_face_enabled" value="true"/>
<property name="cull_face_mode" value="back"/>
<!-- SHADERS -->
<shader type="vertex" filename="common/tessellation/vs.glsl" primitiveType="patch3"/>
<shader type="tess_control" filename="common/tessellation/tcs.glsl"/>
<shader type="tess_eval" filename="common/tessellation/tes.glsl"/>
<shader type="fragment" filename="alloy/fs.glsl"/>
<!-- UNIFORMS -->
<uniform name="parallax_mode" guiName="Parallax Mode" min="1" max="1" />
<uniform name="tessellationFactor" guiGroup="Height" guiName="Tessellation Factor" default="4" min="1" max="64" guiStep="1" guiWidget="slider"/>
</technique>
<technique name="Packed Parallax Occlusion">
<!-- PROPERTIES -->
<property name="blend_enabled" value="true"/>
<property name="blend_func" value="src_alpha,one_minus_src_alpha"/>
<property name="cull_face_enabled" value="true"/>
<property name="cull_face_mode" value="back"/>
<!-- SHADERS -->
<shader type="vertex" filename="common/parallax/vs.glsl"/>
<shader type="fragment" filename="alloy_packed/fs.glsl"/>
<!-- UNIFORMS -->
<uniform name="parallax_mode" guiName="Parallax Mode" min="0" max="0" />
</technique>
<technique name="Packed Tessellation">
<!-- PROPERTIES -->
<property name="blend_enabled" value="true"/>
<property name="blend_func" value="src_alpha,one_minus_src_alpha"/>
<property name="cull_face_enabled" value="true"/>
<property name="cull_face_mode" value="back"/>
<!-- SHADERS -->
<shader type="vertex" filename="common/tessellation/vs.glsl" primitiveType="patch3"/>
<shader type="tess_control" filename="common/tessellation/tcs.glsl"/>
<shader type="tess_eval" filename="common/tessellation/tes.glsl"/>
<shader type="fragment" filename="alloy_packed/fs.glsl"/>
<!-- UNIFORMS -->
<uniform name="parallax_mode" guiName="Parallax Mode" min="1" max="1" />
<uniform name="tessellationFactor" guiGroup="Height" guiName="Tessellation Factor" default="4" min="1" max="64" guiStep="1" guiWidget="slider"/>
</technique>
<!-- INPUT VERTEX FORMAT -->
<vertexformat name="iVS_Position" semantic="position"/>
<vertexformat name="iVS_Normal" semantic="normal"/>
<vertexformat name="iVS_UV" semantic="texcoord0"/>
<vertexformat name="iVS_Tangent" semantic="tangent0"/>
<vertexformat name="iVS_Binormal" semantic="binormal0"/>
<!-- SAMPLERS -->
<sampler name="baseColorMap" usage="basecolor,diffuse"/>
<sampler name="heightMap" usage="height"/>
<sampler name="normalMap" usage="normal"/>
<sampler name="metallicMap" usage="metallic"/>
<sampler name="roughnessMap" usage="roughness"/>
<sampler name="aoMap" usage="ambientocclusion"/>
<sampler name="emissiveMap" usage="emissive"/>
<sampler name="packedMap" usage="packedMap"/>
<sampler name="specularLevel" usage="specularlevel,specularity"/>
<sampler name="opacityMap" usage="opacity"/>
<sampler name="environmentMap" usage="panorama"/>
<!-- MATRICES -->
<uniform name="worldMatrix" semantic="world"/>
<uniform name="worldViewProjMatrix" semantic="worldviewprojection"/>
<uniform name="worldViewMatrix" semantic="worldview"/>
<uniform name="worldInverseTransposeMatrix" semantic="worldinversetranspose"/>
<uniform name="viewInverseMatrix" semantic="viewinverse"/>
<uniform name="modelViewMatrix" semantic="modelview"/>
<uniform name="projectionMatrix" semantic="projection"/>
<!-- SCENE PARAMETERS -->
<uniform name="Lamp0Pos" semantic="lightposition0"/>
<uniform name="Lamp0Color" semantic="lightcolor0"/>
<uniform name="Lamp0Intensity" semantic="lightintensity0"/>
<uniform name="Lamp1Pos" semantic="lightposition1"/>
<uniform name="Lamp1Color" semantic="lightcolor1"/>
<uniform name="Lamp1Intensity" semantic="lightintensity1"/>
<!-- MISC PARAMETERS -->
<uniform name="nbSamples" semantic="samplespostablesize"/>
<uniform name="maxLod" semantic="panoramamipmapheight"/>
<uniform name="AmbiIntensity" semantic="panoramaintensity"/>
<uniform name="envRotation" semantic="panoramarotation"/>
<uniform name="shCoefs" semantic="irradianceshcoefs"/>
<uniform name="perFragBinormal" semantic="computebinormalinfragmentshader"/>
<uniform name="uvwScale" semantic="uvwscale"/>
<!-- UNIFORMS -->
<uniform name="EmissiveIntensity" guiGroup="Emissive" guiName="Emissive Intensity" default="1" min="0" guiWidget="slider" guiMin="0" guiMax="20"/>
<!--<uniform name="sRGBBaseColor" guiGroup="Base Color" guiName="sRGB Base Color Texture" default="true" guiWidget="checkbox" />-->
<uniform name="heightMapScale" guiGroup="Height" guiName="Scale" default="0" min="-1" guiWidget="slider" guiMin="0" guiMax="1" />
<!--<uniform name="flipY" guiGroup="Normal" guiName="DirectX Normal" default="true" guiWidget="checkbox" semantic="isdirectxnormal"/>-->
<uniform name="tiling" guiGroup="Global" guiName="Tiling" default="1" min="1" guiWidget="slider" guiMax="10"/>
<uniform name="uvwScaleEnabled" guiGroup="Global" guiName="UV Scale Enabled" default="false" guiWidget="checkbox" />
</glslfx>