mirror of
https://github.com/Bithack/principia.git
synced 2026-06-24 02:04:08 +00:00
19 lines
317 B
GLSL
19 lines
317 B
GLSL
uniform sampler2D tex_0;
|
|
|
|
UNIFORMS
|
|
|
|
varying lowp vec2 FS_texcoord;
|
|
varying lowp vec4 FS_color;
|
|
VARYINGS
|
|
|
|
void main(void)
|
|
{
|
|
float ambient = _AMBIENT;
|
|
float shadow = SHADOW;
|
|
|
|
vec4 col = texture2D(tex_0, FS_texcoord) * FS_color;
|
|
|
|
gl_FragColor = (shadow*.5+ambient*2.) * col;
|
|
//gl_FragColor = col;
|
|
}
|
|
|