mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
22 lines
438 B
Text
22 lines
438 B
Text
uniform mat4 mvp;
|
|
uniform mat3 m3a;
|
|
uniform mat3 m3b;
|
|
uniform mat3 m3c;
|
|
uniform vec4 v3a;
|
|
uniform vec4 v3b;
|
|
uniform vec4 v3c;
|
|
void main ()
|
|
{
|
|
gl_Position = (mvp * gl_Vertex);
|
|
vec4 tmpvar_1;
|
|
tmpvar_1.w = 1.0;
|
|
tmpvar_1.xyz = (((m3a *
|
|
(gl_Vertex.xyz - v3a.xyz)
|
|
) + (m3b *
|
|
(gl_Vertex.xyz - (mvp * v3b).xyz)
|
|
)) + (m3c * (gl_Vertex.xyz - v3c.xyz)));
|
|
gl_FrontColor = tmpvar_1;
|
|
}
|
|
|
|
|
|
// inputs: 1, stats: 11 alu 0 tex 0 flow
|