diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-02-12 20:54:41 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-02-12 20:54:41 +0300 |
commit | 5e613198e59124986ab3e4bdb8829f77e2284450 (patch) | |
tree | 6659b06236acf73a8c687ea15867a83f1c63983c /source/blender/gpu/CMakeLists.txt | |
parent | d40ac45610edef50885ce73034f7c035f48cc9c1 (diff) |
Viewport compositing - first code
This commit introduces a few ready made effects for the 3D viewport
and OpenGL rendering.
Included effects are Depth of Field, accessible from camera view
and screen space ambient occlusion. Those effects can be turned on and
tweaked from the shading panel in the 3D viewport.
Off screen rendering will use the settings of the current camera.
WIP documentation can be found here:
http://wiki.blender.org/index.php/User:Psy-Fi/Framebuffer_Post-processing
Diffstat (limited to 'source/blender/gpu/CMakeLists.txt')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 361c247767f..7e32105a916 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -54,6 +54,21 @@ set(SRC intern/gpu_material.c intern/gpu_simple_shader.c intern/gpu_select.c + intern/gpu_compositing.c + + shaders/gpu_shader_fx_lib.glsl + shaders/gpu_shader_fx_ssao_frag.glsl + shaders/gpu_shader_fx_dof_frag.glsl + shaders/gpu_shader_fx_dof_vert.glsl + shaders/gpu_shader_fx_vert.glsl + shaders/gpu_shader_material.glsl + shaders/gpu_shader_sep_gaussian_blur_frag.glsl + shaders/gpu_shader_sep_gaussian_blur_vert.glsl + shaders/gpu_shader_simple_frag.glsl + shaders/gpu_shader_simple_vert.glsl + shaders/gpu_shader_vertex.glsl + shaders/gpu_shader_vsm_store_frag.glsl + shaders/gpu_shader_vsm_store_vert.glsl GPU_buffers.h GPU_draw.h @@ -63,6 +78,7 @@ set(SRC GPU_material.h GPU_simple_shader.h GPU_select.h + GPU_compositing.h intern/gpu_codegen.h intern/gpu_extensions_private.h ) @@ -76,6 +92,11 @@ data_to_c_simple(shaders/gpu_shader_vertex.glsl SRC) data_to_c_simple(shaders/gpu_shader_vertex_world.glsl SRC) data_to_c_simple(shaders/gpu_shader_vsm_store_frag.glsl SRC) data_to_c_simple(shaders/gpu_shader_vsm_store_vert.glsl SRC) +data_to_c_simple(shaders/gpu_shader_fx_vert.glsl SRC) +data_to_c_simple(shaders/gpu_shader_fx_ssao_frag.glsl SRC) +data_to_c_simple(shaders/gpu_shader_fx_dof_frag.glsl SRC) +data_to_c_simple(shaders/gpu_shader_fx_dof_vert.glsl SRC) +data_to_c_simple(shaders/gpu_shader_fx_lib.glsl SRC) if(WITH_GAMEENGINE) add_definitions(-DWITH_GAMEENGINE) |