From 180aad05decc7eefa87e4e45d6747c48f40e5361 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 17 Apr 2023 12:12:01 -0400 Subject: save --- assets/shaders/Gui_VS.glsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 assets/shaders/Gui_VS.glsl (limited to 'assets/shaders/Gui_VS.glsl') diff --git a/assets/shaders/Gui_VS.glsl b/assets/shaders/Gui_VS.glsl new file mode 100755 index 0000000..0bd6d2c --- /dev/null +++ b/assets/shaders/Gui_VS.glsl @@ -0,0 +1,12 @@ +#version 140 + +in vec2 position; + +out vec2 textureCoords; + +uniform mat4 transformationMatrix; + +void main(void){ + gl_Position = transformationMatrix * vec4(position.x , position.y, 0.0, 1.0); + textureCoords = vec2((position.x+1.0)/2.0, 1 - (position.y+1.0)/2.0); +} -- cgit v1.2.3-freya