mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
21 lines
459 B
Text
21 lines
459 B
Text
void main ()
|
|
{
|
|
vec3 n_1;
|
|
mat3 m_2;
|
|
vec4 tmpvar_3;
|
|
tmpvar_3 = (gl_ModelViewProjectionMatrix * gl_Vertex);
|
|
gl_Position = tmpvar_3;
|
|
mat3 tmpvar_4;
|
|
tmpvar_4 = (mat3(0.1, 0.8, 0.1, 0.3, 0.3, 0.5, 0.9, 0.0, 0.1));
|
|
m_2 = (tmpvar_4);
|
|
vec3 tmpvar_5;
|
|
tmpvar_5 = (m_2 * gl_Normal);
|
|
n_1 = tmpvar_5;
|
|
vec4 tmpvar_6;
|
|
tmpvar_6.w = 1.0;
|
|
tmpvar_6.xyz = ((n_1 * 0.5) + 0.5).xyz;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = tmpvar_6;
|
|
gl_FrontColor = tmpvar_7;
|
|
}
|
|
|