Created
November 24, 2022 22:00
-
-
Save tuket/45668d822a2ef5b7cd0bf188dfd1286d to your computer and use it in GitHub Desktop.
change imgui shader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
precision highp float; | |
layout (location = 0) in vec2 Position; | |
layout (location = 1) in vec2 UV; | |
layout (location = 2) in vec4 Color; | |
uniform mat4 ProjMtx; | |
out vec2 Frag_UV; | |
out vec4 Frag_Color; | |
void main() | |
{ | |
Frag_UV = UV; | |
Frag_Color = vec4(pow(Color.rgb, vec3(2.2)), Color.a);; | |
gl_Position = ProjMtx * vec4(Position.xy,0,1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment