Skip to content

Commit cee003e

Browse files
committed
fix layout specification for blend equations and add sample shading due to some impls needing it
1 parent 05b1f8b commit cee003e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/Base.rte/Shaders/Background.frag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#version 330
22
#extension GL_KHR_blend_equation_advanced: enable
3+
#extension GL_ARB_sample_shading: enable
34

45
in vec2 textureUV;
56
in vec4 vertexColor;
67

78
#ifdef GL_KHR_blend_equation_advanced
8-
layout(blend_support_all_equations) out vec4 FragColor;
9-
#else
10-
out vec4 FragColor;
9+
layout(blend_support_all_equations) out;
1110
#endif
11+
out vec4 FragColor;
1212
uniform sampler2D rteTexture;
1313
uniform sampler2D rtePalette;
1414
uniform vec4 rteColor = vec4(1.0);

0 commit comments

Comments
 (0)