SHADE_Y3/Assets/Shaders/ShadowMap_FS.glsl

12 lines
367 B
Plaintext
Raw Normal View History

2023-02-03 20:16:42 +08:00
#version 450
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable
#extension GL_EXT_nonuniform_qualifier : require
layout(location = 0) out vec4 shadowMap;
2023-02-03 20:16:42 +08:00
void main()
{
// shadowMap = vec4 (0.0f, 0.0f, gl_FragCoord.z, 1.0f);
shadowMap = vec4 (gl_FragCoord.z, gl_FragCoord.z * gl_FragCoord.z, 0.0f, 1.0f);
2023-02-03 20:16:42 +08:00
}