Closed curioustorvald closed 5 years ago
vec4 finalColor = vec4(mix(finalTile.rgb, finalBreakage.rgb, finalBreakage.a), finalTile.a);
This also prevents cracks to "float" over the tile, as wen there's no pixel under the crack, crack itself also won't get drawn.
It seems the shader's only changing alpha, instead of overlaying the colour