mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 14:13:45 +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
18 lines
341 B
GLSL
18 lines
341 B
GLSL
attribute vec3 a_pos;
|
|
attribute vec2 a_texCoords;
|
|
|
|
uniform mat4 u_transform;
|
|
|
|
varying float v_intensity;
|
|
|
|
void main()
|
|
{
|
|
vec4 position = u_transform * vec4(a_pos, 1.0);
|
|
v_intensity = a_texCoords.x;
|
|
gl_Position = position;
|
|
#ifdef VULKAN
|
|
gl_Position.y = -gl_Position.y;
|
|
gl_Position.z = (gl_Position.z + gl_Position.w) * 0.5;
|
|
#endif
|
|
}
|