mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
6 lines
211 B
Text
6 lines
211 B
Text
void main() {
|
|
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
|
mat3 m = mat3 (0.1, 0.8, 0.1, 0.3, 0.3, 0.5, 0.9, 0.0, 0.1);
|
|
vec3 n = m * gl_Normal;
|
|
gl_FrontColor = vec4(n*0.5+0.5, 1.0);
|
|
}
|