Pylon rendering

This commit is contained in:
Vasco Lavos committed 2017-09-02 17:02:33 +01:00
1 parent 2e0d8ed8a5
commit 678fd193da
2 files changed
+5 -30

No files matched your search

@@ -13,7 +13,7 @@ void main() {
color += texture2D(bgl_RenderedTexture, texcoord + vec2(j, i));
float brightness = sin(time / 20.0) * 0.5 + 0.15;
float alpha = sin(time / 30.0) * 0.5 + 0.35;
float alpha = min(1, sin(time / 30.0) * 0.5 + 0.75);
gl_FragColor = vec4((color * color * 0.0005 * brightness + texture2D(bgl_RenderedTexture, texcoord)).rgb, alpha * gl_Color.a);
}