I've made a separate version of the geom shader that works with full 3D modelviewmat. This commit also includes some fixup inside blf_batching_start().
18 lines
223 B
GLSL
18 lines
223 B
GLSL
|
|
uniform mat4 ModelViewProjectionMatrix;
|
|
|
|
in vec4 pos; /* rect */
|
|
in vec4 tex; /* rect */
|
|
in vec4 col;
|
|
|
|
out vec4 pos_rect;
|
|
out vec4 tex_rect;
|
|
out vec4 color;
|
|
|
|
void main()
|
|
{
|
|
pos_rect = pos;
|
|
tex_rect = tex;
|
|
color = col;
|
|
}
|