Add color to the lens dust

This commit is contained in:
samuncle
2015-07-26 05:30:29 +02:00
parent 51bd87d303
commit 1ca6339589

View File

@@ -13,7 +13,11 @@ void main()
col += .25 * texture(tex_256, uv);
col += .5 * texture(tex_512, uv);
col = texture(tex_dust, uv);
/* Lens dust effect ---- */
vec4 col2 = texture(tex_128, uv);
col2 += col2;
//float dustMask = max(col2.r,max(col2.g,col2.b));
col += texture(tex_dust, uv) * col2;
FragColor = vec4(col.xyz, 1.);
}