ADDED: Missing GLSL120 shaders
This commit is contained in:
parent
705ce45a33
commit
8dae39fbda
1 changed files with 1141 additions and 0 deletions
17
examples/shaders/resources/shaders/glsl120/write_depth.fs
Normal file
17
examples/shaders/resources/shaders/glsl120/write_depth.fs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 100
|
||||
|
||||
#extension GL_EXT_frag_depth : enable
|
||||
|
||||
varying vec2 fragTexCoord;
|
||||
varying vec4 fragColor;
|
||||
|
||||
uniform sampler2D texture0;
|
||||
uniform vec4 colDiffuse;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texelColor = texture2D(texture0, fragTexCoord);
|
||||
|
||||
gl_FragColor = texelColor*colDiffuse*fragColor;
|
||||
gl_FragDepthEXT = 1.0 - gl_FragCoord.z;
|
||||
}
|
||||
Loading…
Reference in a new issue