Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/shadow_accum_frag.glsl
| #pragma BLENDER_REQUIRE(common_math_lib.glsl) | #pragma BLENDER_REQUIRE(common_math_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(common_utiltex_lib.glsl) | #pragma BLENDER_REQUIRE(common_utiltex_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(lights_lib.glsl) | #pragma BLENDER_REQUIRE(lights_lib.glsl) | ||||
| uniform depth2D depthBuffer; | |||||
| out vec4 fragColor; | |||||
| void main() | void main() | ||||
| { | { | ||||
| if (laNumLight == 0) { | if (laNumLight == 0) { | ||||
| /* Early exit: No lights in scene */ | /* Early exit: No lights in scene */ | ||||
| fragColor.r = 1.0; | fragColor.r = 1.0; | ||||
| return; | return; | ||||
| } | } | ||||
| Show All 35 Lines | |||||