14 lines
245 B
Plaintext
14 lines
245 B
Plaintext
|
|
#version 450
|
||
|
|
#extension GL_GOOGLE_include_directive : enable
|
||
|
|
|
||
|
|
#include "lib/common.glsl"
|
||
|
|
#include "lib/lighting.glsl"
|
||
|
|
|
||
|
|
IN(0, float, depth)
|
||
|
|
|
||
|
|
void main()
|
||
|
|
{
|
||
|
|
// exponential depth
|
||
|
|
gl_FragDepth = exp(SHADOW_POWER * in_depth) / exp(SHADOW_POWER);
|
||
|
|
}
|