Redid alpha-render-handling (-> grey eliminated)

Particlesystem now looking like in particle creator. -> All effects have to be redone
This commit is contained in:
=
2017-11-01 17:11:23 +01:00
parent 623abdc271
commit 8964c307db
12 changed files with 24 additions and 25 deletions

View File

@ -20,6 +20,7 @@ void main() {
vec2 texAtlasCoords = getTexCoordsInAtlas(clampedTexCoords, texAtlasIndex);
gl_FragColor = texture2D(texture, texAtlasCoords);
gl_FragColor.a = min(gl_FragColor.a, alpha);
gl_FragColor.rgb = gl_FragColor.rgb / gl_FragColor.a;
}