dream_vision.fs (985B)
1 #version 330 2 3 in vec2 fragTexCoord; 4 5 out vec4 fragColor; 6 7 uniform sampler2D texture0; 8 uniform vec4 colDiffuse; 9 10 // NOTE: Add here your custom variables 11 12 void main() 13 { 14 vec4 color = texture(texture0, fragTexCoord); 15 16 color += texture(texture0, fragTexCoord + 0.001); 17 color += texture(texture0, fragTexCoord + 0.003); 18 color += texture(texture0, fragTexCoord + 0.005); 19 color += texture(texture0, fragTexCoord + 0.007); 20 color += texture(texture0, fragTexCoord + 0.009); 21 color += texture(texture0, fragTexCoord + 0.011); 22 23 color += texture(texture0, fragTexCoord - 0.001); 24 color += texture(texture0, fragTexCoord - 0.003); 25 color += texture(texture0, fragTexCoord - 0.005); 26 color += texture(texture0, fragTexCoord - 0.007); 27 color += texture(texture0, fragTexCoord - 0.009); 28 color += texture(texture0, fragTexCoord - 0.011); 29 30 color.rgb = vec3((color.r + color.g + color.b)/3.0); 31 color = color/9.5; 32 33 fragColor = color; 34 }