diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-09-15 12:47:58 +0000 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-09-15 12:47:58 +0000 |
commit | 027af044ce8eb233e47cd7134da42f0b53cf2784 (patch) | |
tree | 48476fa4c032d965a6f39be1b2d836df1ea3f979 /shaders/tile-shader.frag | |
parent | da0ca2b78fa42fcb8bedc4100074735bbcfc148f (diff) |
a
Diffstat (limited to 'shaders/tile-shader.frag')
-rw-r--r-- | shaders/tile-shader.frag | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shaders/tile-shader.frag b/shaders/tile-shader.frag index 5d40df69..1cd1cf3d 100644 --- a/shaders/tile-shader.frag +++ b/shaders/tile-shader.frag @@ -4,12 +4,10 @@ layout(location = 2) uniform sampler2D textureData; layout(location = 1) uniform float y_scale; in vec2 interpolatedTextureCoordinates; -in float interpolated_frag_depth; out vec4 fragmentColor; void main() { fragmentColor.rgb = texture(textureData, interpolatedTextureCoordinates).rgb; - fragmentColor.a = 1.0; - gl_FragDepth = interpolated_frag_depth * y_scale; + fragmentColor.a = 1; } |