mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-12 00:01:43 +00:00
21 lines
390 B
GLSL
21 lines
390 B
GLSL
|
uniform mat4 mvp_mat;
|
||
|
attribute float vblend;
|
||
|
attribute vec4 vcolora, vcolorb;
|
||
|
attribute vec4 uvab; ///< ua va ub vb
|
||
|
attribute vec4 vertexa, vertexb;
|
||
|
|
||
|
varying float blend;
|
||
|
varying vec4 colora, colorb;
|
||
|
varying vec2 sta, stb;
|
||
|
|
||
|
void
|
||
|
main (void)
|
||
|
{
|
||
|
gl_Position = mvp_mat * mix (vertexa, vertexb, vblend);
|
||
|
blend = vblend;
|
||
|
colora = vcolora;
|
||
|
colorb = vcolorb;
|
||
|
sta = uvab.xy;
|
||
|
stb = uvab.zw;
|
||
|
}
|