Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/antialiasing_vert.glsl')
-rw-r--r--source/blender/draw/engines/overlay/shaders/antialiasing_vert.glsl26
1 files changed, 4 insertions, 22 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/antialiasing_vert.glsl b/source/blender/draw/engines/overlay/shaders/antialiasing_vert.glsl
index 9ded3b6c6c5..4f3c36c7bd7 100644
--- a/source/blender/draw/engines/overlay/shaders/antialiasing_vert.glsl
+++ b/source/blender/draw/engines/overlay/shaders/antialiasing_vert.glsl
@@ -1,29 +1,11 @@
out vec2 uvs;
-#if STEP == 1
-out vec2 pixcoord;
-#endif
-
-#if STEP == 2
-out vec4 offset;
-#else
-out vec4 offsets[3];
-#endif
-
void main()
{
int v = gl_VertexID % 3;
- float x = -1.0 + float((v & 1) << 2);
- float y = -1.0 + float((v & 2) << 1);
- gl_Position = vec4(x, y, 1.0, 1.0);
- uvs = (gl_Position.xy * 0.5 + 0.5).xy;
-
-#if STEP == 0
- SMAAEdgeDetectionVS(uvs, offsets);
-#elif STEP == 1
- SMAABlendingWeightCalculationVS(uvs, pixcoord, offsets);
-#elif STEP == 2
- SMAANeighborhoodBlendingVS(uvs, offset);
-#endif
+ float x = float((v & 1) << 2);
+ float y = float((v & 2) << 1);
+ gl_Position = vec4(x - 1.0, y - 1.0, 1.0, 1.0);
+ uvs = vec2(x, y) * 0.5;
} \ No newline at end of file