Sha256: bdcf8de354cff019ea4035554137de6d56ef47b0c2f77d8359eaf79a1e2469c5
Contents?: true
Size: 330 Bytes
Versions: 11
Compression:
Stored size: 330 Bytes
Contents
#version 110 uniform sampler2D in_Texture; varying vec2 var_TexCoord; varying vec4 var_Color; const vec3 Ratio = vec3(0.299, 0.587, 0.114); void main() { vec4 color = texture2D(in_Texture, var_TexCoord); float gray = dot(color.rgb * var_Color.rgb, Ratio); gl_FragColor = vec4(vec3(gray), color.a * var_Color.a); }
Version data entries
11 entries across 11 versions & 2 rubygems