mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
17 lines
370 B
GLSL
17 lines
370 B
GLSL
varying vec3 v_normal;
|
|
|
|
#ifdef SAMSUNG_GOOGLE_NEXUS
|
|
uniform sampler2D u_colorTex;
|
|
#endif
|
|
|
|
const vec3 lightDir = vec3(0.316, 0.0, 0.948);
|
|
|
|
uniform vec4 u_color;
|
|
|
|
void main()
|
|
{
|
|
float phongDiffuse = max(0.0, -dot(lightDir, v_normal));
|
|
vec4 resColor = vec4((phongDiffuse * 0.5 + 0.5) * u_color.rgb, u_color.a);
|
|
gl_FragColor = samsungGoogleNexusWorkaround(resColor);
|
|
}
|