Added raymarch example and thumbnail for write depth (#2919)
This commit is contained in:
parent
6ae21d6581
commit
4ae0a416f4
1 changed files with 819 additions and 4 deletions
14
examples/shaders/resources/shaders/glsl330/hybrid_raster.fs
Normal file
14
examples/shaders/resources/shaders/glsl330/hybrid_raster.fs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 330
|
||||
|
||||
in vec2 fragTexCoord;
|
||||
in vec4 fragColor;
|
||||
|
||||
uniform sampler2D texture0;
|
||||
uniform vec4 colDiffuse;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texelColor = texture2D(texture0, fragTexCoord);
|
||||
gl_FragColor = texelColor*colDiffuse*fragColor;
|
||||
gl_FragDepth = gl_FragCoord.z;
|
||||
}
|
||||
Loading…
Reference in a new issue