precision mediump float; varying vec2 TexCoord; varying float vHeight; uniform sampler2D Texture; void main() { vec4 stoneColor = texture2D(Texture, TexCoord); gl_FragColor = vec4(stoneColor.rgb, vHeight); //gl_FragColor = vec4(vHeight, vHeight, vHeight, vHeight); //gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0); }