Viewport compositing - first code
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 12 Feb 2015 17:54:41 +0000 (18:54 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 12 Feb 2015 17:54:41 +0000 (18:54 +0100)
commit5e613198e59124986ab3e4bdb8829f77e2284450
tree6659b06236acf73a8c687ea15867a83f1c63983c
parentd40ac45610edef50885ce73034f7c035f48cc9c1
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
36 files changed:
SConstruct
release/scripts/startup/bl_ui/properties_data_camera.py
release/scripts/startup/bl_ui/space_view3d.py
source/blender/CMakeLists.txt
source/blender/blenkernel/BKE_camera.h
source/blender/blenkernel/BKE_screen.h
source/blender/blenkernel/intern/camera.c
source/blender/blenkernel/intern/screen.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/include/ED_view3d.h
source/blender/editors/render/render_opengl.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/gpu/CMakeLists.txt
source/blender/gpu/GPU_compositing.h [new file with mode: 0644]
source/blender/gpu/GPU_extensions.h
source/blender/gpu/SConscript
source/blender/gpu/intern/gpu_codegen.c
source/blender/gpu/intern/gpu_compositing.c [new file with mode: 0644]
source/blender/gpu/intern/gpu_extensions.c
source/blender/gpu/shaders/gpu_shader_fx_dof_frag.glsl [new file with mode: 0644]
source/blender/gpu/shaders/gpu_shader_fx_dof_vert.glsl [new file with mode: 0644]
source/blender/gpu/shaders/gpu_shader_fx_lib.glsl [new file with mode: 0644]
source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl [new file with mode: 0644]
source/blender/gpu/shaders/gpu_shader_fx_vert.glsl [new file with mode: 0644]
source/blender/makesdna/DNA_camera_types.h
source/blender/makesdna/DNA_gpu_types.h [new file with mode: 0644]
source/blender/makesdna/DNA_scene_types.h
source/blender/makesdna/DNA_view3d_types.h
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/intern/rna_camera.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_space.c