Differential D15680 Diff 54643 source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_reduce_comp.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_reduce_comp.glsl
| Context not available. | |||||
| * Inputs: | * Inputs: | ||||
| * - Output of setup pass (halfres) and reduce downsample pass (quarter res). | * - Output of setup pass (halfres) and reduce downsample pass (quarter res). | ||||
| * Outputs: | * Outputs: | ||||
| * - Halfres padded to avoid mipmap mis-alignment (so possibly not matching input size). | * - Halfres padded to avoid mipmap misalignment (so possibly not matching input size). | ||||
| * - Gather input color (whole mip chain), Scatter rect list, Signed CoC (whole mip chain). | * - Gather input color (whole mip chain), Scatter rect list, Signed CoC (whole mip chain). | ||||
| **/ | **/ | ||||
| Context not available. | |||||
| do_scatter[LOCAL_INDEX] *= dof_scatter_screen_border_rejection(coc_cache[LOCAL_INDEX], texel); | do_scatter[LOCAL_INDEX] *= dof_scatter_screen_border_rejection(coc_cache[LOCAL_INDEX], texel); | ||||
| /* Only scatter if neighborhood is different enough. */ | /* Only scatter if neighborhood is different enough. */ | ||||
| do_scatter[LOCAL_INDEX] *= dof_scatter_neighborhood_rejection(color_cache[LOCAL_INDEX].rgb); | do_scatter[LOCAL_INDEX] *= dof_scatter_neighborhood_rejection(color_cache[LOCAL_INDEX].rgb); | ||||
| /* For debuging. */ | /* For debugging. */ | ||||
| if (no_scatter_pass) { | if (no_scatter_pass) { | ||||
| do_scatter[LOCAL_INDEX] = 0.0; | do_scatter[LOCAL_INDEX] = 0.0; | ||||
| } | } | ||||
| Context not available. | |||||