diff options
Diffstat (limited to 'src/shader/CalcGradient_glsl_vs.h')
| -rw-r--r-- | src/shader/CalcGradient_glsl_vs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/shader/CalcGradient_glsl_vs.h b/src/shader/CalcGradient_glsl_vs.h new file mode 100644 index 0000000..aa2747a --- /dev/null +++ b/src/shader/CalcGradient_glsl_vs.h @@ -0,0 +1,26 @@ +R"glsl( +//------------------------------------------------------------------------------------ +// Global variables +//------------------------------------------------------------------------------------ + +uniform vec4 g_Scales; +uniform vec4 g_OneTexel_Left; +uniform vec4 g_OneTexel_Right; +uniform vec4 g_OneTexel_Back; +uniform vec4 g_OneTexel_Front; + +uniform sampler2D g_textureDisplacementMap; + +varying float2 vInterpTexCoord; + +attribute float4 vInPos; +attribute float2 vInTexCoord; +void main() +{ + // No need to do matrix transform. + gl_Position = vInPos; + + // Pass through general texture coordinate. + vInterpTexCoord = vInTexCoord; +} +)glsl"; |