From 1772651049ca96ec7084f96c9eda7973dd27c2f5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:21:55 +1100 Subject: [PATCH] Fix color_picker shader compilation (#4690) --- Resources/Shaders/color_picker.swsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Shaders/color_picker.swsl b/Resources/Shaders/color_picker.swsl index 3a3a6dc42..514f59bbd 100644 --- a/Resources/Shaders/color_picker.swsl +++ b/Resources/Shaders/color_picker.swsl @@ -15,7 +15,7 @@ void fragment() // I.e., if using this shader to draw a box to the screen, (0,0) is the bottom left of the box. highp float yCoords = 1.0/SCREEN_PIXEL_SIZE.y - FRAGCOORD.y; - highp vec2 uv = new vec2(FRAGCOORD.x - offset.x, yCoords - offset.y); + highp vec2 uv = vec2(FRAGCOORD.x - offset.x, yCoords - offset.y); uv /= size; uv.y = 1.0 - uv.y;