Blender V4.3
workbench_shadow.cc File Reference
#include "BKE_object.hh"
#include "DRW_render.hh"
#include "GPU_compute.hh"
#include "workbench_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::workbench
 

Macros

#define DEBUG_CULLING   0
 

Detailed Description

Shadow:

Use stencil shadow buffer to cast a sharp shadow over opaque surfaces.

After the main pre-pass we render shadow volumes using custom depth & stencil states to set the stencil of shadowed area to anything but 0.

Then the shading pass will shade the areas with stencil not equal 0 differently.

Definition in file workbench_shadow.cc.

Macro Definition Documentation

◆ DEBUG_CULLING

#define DEBUG_CULLING   0