This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/draw/engines/eevee/shaders/shadow_frag.glsl
Clément Foucault d9d65a06d3 Eevee: Move cube shadows to octahedron shadowmaps.
We render linear distance to the light in a R32 texture and store it into an octahedron projection inside a 2D texture array.

This render the sampling function much more simpler and without edge artifacts.
2017-05-20 16:58:07 +02:00

9 lines
114 B
GLSL

in float linearDistance;
out vec4 FragColor;
void main() {
FragColor = vec4(linearDistance, 0.0, 0.0, 1.0);
}