12 lines
367 B
GLSL
12 lines
367 B
GLSL
#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;
|
|
|
|
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);
|
|
} |