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:
12
client/shaders/shadow/pass2/opengl_vertex.glsl
Normal file
12
client/shaders/shadow/pass2/opengl_vertex.glsl
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user