Differential D13910 Diff 47374 source/blender/draw/engines/workbench/shaders/workbench_cavity_lib.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/shaders/workbench_cavity_lib.glsl
| #pragma BLENDER_REQUIRE(common_view_lib.glsl) | #pragma BLENDER_REQUIRE(common_view_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(workbench_data_lib.glsl) | |||||
| #pragma BLENDER_REQUIRE(workbench_common_lib.glsl) | #pragma BLENDER_REQUIRE(workbench_common_lib.glsl) | ||||
| layout(std140) uniform samples_block | |||||
| { | |||||
| vec4 samples_coords[512]; | |||||
| }; | |||||
| uniform sampler2D cavityJitter; | |||||
| /* From The Alchemy screen-space ambient obscurance algorithm | /* From The Alchemy screen-space ambient obscurance algorithm | ||||
| * http://graphics.cs.williams.edu/papers/AlchemyHPG11/VV11AlchemyAO.pdf */ | * http://graphics.cs.williams.edu/papers/AlchemyHPG11/VV11AlchemyAO.pdf */ | ||||
| void cavity_compute(vec2 screenco, | void cavity_compute(vec2 screenco, | ||||
| sampler2D depthBuffer, | sampler2D depthBuffer, | ||||
| sampler2D normalBuffer, | sampler2D normalBuffer, | ||||
| out float cavities, | out float cavities, | ||||
| out float edges) | out float edges) | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||