Skip to content

Instantly share code, notes, and snippets.

@tuket
Created November 24, 2022 22:00
Show Gist options
  • Select an option

  • Save tuket/45668d822a2ef5b7cd0bf188dfd1286d to your computer and use it in GitHub Desktop.

Select an option

Save tuket/45668d822a2ef5b7cd0bf188dfd1286d to your computer and use it in GitHub Desktop.

Revisions

  1. tuket revised this gist Nov 24, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion imgui.glsl
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,6 @@ out vec4 Frag_Color;
    void main()
    {
    Frag_UV = UV;
    Frag_Color = Color;
    Frag_Color = vec4(pow(Color.rgb, vec3(2.2)), Color.a);;
    gl_Position = ProjMtx * vec4(Position.xy,0,1);
    }
  2. tuket created this gist Nov 24, 2022.
    13 changes: 13 additions & 0 deletions imgui.glsl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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 = Color;
    gl_Position = ProjMtx * vec4(Position.xy,0,1);
    }