1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-08 16:35:31 +01:00

Port shadow shaders to work with OpenGL3

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
PtiLuky
2025-10-13 11:04:07 +02:00
committed by sfan5
parent 5e23e478b1
commit d834c45d1c
13 changed files with 128 additions and 264 deletions

View File

@@ -0,0 +1,12 @@
#ifdef GL_ES
varying mediump vec2 varTexCoord;
#else
centroid varying vec2 varTexCoord;
#endif
void main()
{
vec4 uv = vec4(inVertexPosition.xyz, 1.0) * 0.5 + 0.5;
varTexCoord = uv.st;
gl_Position = vec4(inVertexPosition.xyz, 1.0);
}