Merge branch 'blender-v2.93-release'
This commit is contained in:
@@ -136,7 +136,7 @@ const float layer_offset_fg = 0.5 + 1.0;
|
||||
/* Extra offset for convolution layers to avoid light leaking from background. */
|
||||
const float layer_offset = 0.5 + 0.5;
|
||||
|
||||
#define DOF_MAX_SLIGHT_FOCUS_RADIUS 5
|
||||
#define DOF_MAX_SLIGHT_FOCUS_RADIUS 16
|
||||
|
||||
float dof_layer_weight(float coc, const bool is_foreground)
|
||||
{
|
||||
|
@@ -40,7 +40,7 @@ void dof_slight_focus_gather(float radius, out vec4 out_color, out float out_wei
|
||||
DofGatherData fg_accum = GATHER_DATA_INIT;
|
||||
DofGatherData bg_accum = GATHER_DATA_INIT;
|
||||
|
||||
int i_radius = clamp(int(radius), 0, int(layer_threshold));
|
||||
int i_radius = clamp(int(radius + 0.5), 0, int(layer_threshold));
|
||||
const int resolve_ring_density = DOF_SLIGHT_FOCUS_DENSITY;
|
||||
ivec2 texel = ivec2(gl_FragCoord.xy);
|
||||
|
||||
|
Reference in New Issue
Block a user