REVIEWED: Shaders formating to follow raylib code conventions

This commit is contained in:
Ray 2025-08-11 20:22:31 +02:00
commit 9b598f6bcf

View file

@ -1,4 +1,5 @@
#version 100
#version 100
#extension GL_EXT_frag_depth : enable // Extension required for writing depth
precision mediump float; // Precision required for OpenGL ES2 (WebGL)
@ -11,6 +12,7 @@ uniform vec4 colDiffuse;
void main()
{
vec4 texelColor = texture2D(texture0, fragTexCoord);
gl_FragColor = texelColor*colDiffuse*fragColor;
gl_FragDepthEXT = gl_FragCoord.z;
gl_FragDepthEXT = gl_FragCoord.z;
}