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
|
|
|
|
|
2023-02-15 21:34:22 +08:00
|
|
|
layout(location = 0) out vec4 shadowMap;
|
2023-02-03 20:16:42 +08:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-02-15 21:34:22 +08:00
|
|
|
// 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
|
|
|
}
|