EEVEE-Next: Jittered Soft Shadows #119753

Closed
Miguel Pozo wants to merge 46 commits from pragma37/blender:pull-eevee-jittered-shoft-shadows into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
3 changed files with 3 additions and 2 deletions
Showing only changes of commit a2e2a34866 - Show all commits

View File

@ -44,7 +44,6 @@ struct Light : public LightData, NonCopyable {
public:
bool initialized = false;
bool used = false;
float jittering = 0.0f;
/** Pointers to source Shadow. Type depends on `LightData::type`. */
ShadowDirectional *directional = nullptr;

View File

@ -822,7 +822,7 @@ struct LightData {
/** Punctual: Shift to apply to the light origin to get the shadow projection origin. */
float shadow_projection_shift;
packed_float3 shadow_origin_shift;
float _pad1;
float jittering;
};
BLI_STATIC_ASSERT_ALIGN(LightData, 16)

View File

@ -294,6 +294,8 @@ ShadowRayPunctual shadow_ray_generate_punctual(LightData light,
random_2d = sample_disk(random_2d);
}
random_2d *= 1.0 - light.jittering;
float clip_far = intBitsToFloat(light.clip_far);
float clip_near = intBitsToFloat(light.clip_near);
float clip_side = light.clip_side;