shader/sprite_frag.glsl

Thu, 21 Mar 2024 22:23:00 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 21 Mar 2024 22:23:00 +0100
changeset 41
df81d493716e
parent 40
6c438be1a1fd
child 50
d8d2e4817db1
permissions
-rw-r--r--

add correct interleaving of opaque and transparent sprites

#version 400 core

layout(location = 0) out vec4 diffuse;
in vec2 texcoord;

uniform sampler2DRect surface;

void main(void) {
    diffuse = texture(surface, texcoord);
}

mercurial