Skip to content

Instantly share code, notes, and snippets.

@tuket
Created November 24, 2022 22:00
Show Gist options
  • Save tuket/45668d822a2ef5b7cd0bf188dfd1286d to your computer and use it in GitHub Desktop.
Save tuket/45668d822a2ef5b7cd0bf188dfd1286d to your computer and use it in GitHub Desktop.
change imgui shader
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