Differential D15680 Diff 54643 source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_resolve_comp.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_resolve_comp.glsl
| Context not available. | |||||
| } | } | ||||
| /* Use atomic reduce operation. */ | /* Use atomic reduce operation. */ | ||||
| atomicMax(shared_max_slight_focus_abs_coc, floatBitsToUint(local_abs_max)); | atomicMax(shared_max_slight_focus_abs_coc, floatBitsToUint(local_abs_max)); | ||||
| /* "Broadcast" result accross all threads. */ | /* "Broadcast" result across all threads. */ | ||||
| barrier(); | barrier(); | ||||
| return uintBitsToFloat(shared_max_slight_focus_abs_coc); | return uintBitsToFloat(shared_max_slight_focus_abs_coc); | ||||
| Context not available. | |||||
| vec3 dof_neighborhood_clamp(vec2 frag_coord, vec3 color, float center_coc, float weight) | vec3 dof_neighborhood_clamp(vec2 frag_coord, vec3 color, float center_coc, float weight) | ||||
| { | { | ||||
| /* Stabilize color by clamping with the stable half res neighboorhood. */ | /* Stabilize color by clamping with the stable half res neighborhood. */ | ||||
| vec3 neighbor_min, neighbor_max; | vec3 neighbor_min, neighbor_max; | ||||
| const vec2 corners[4] = vec2[4](vec2(-1, -1), vec2(1, -1), vec2(-1, 1), vec2(1, 1)); | const vec2 corners[4] = vec2[4](vec2(-1, -1), vec2(1, -1), vec2(-1, 1), vec2(1, 1)); | ||||
| for (int i = 0; i < 4; i++) { | for (int i = 0; i < 4; i++) { | ||||
| Context not available. | |||||