Blender Git Commit Log

Git Commits -> Revision 0372b64

Revision 0372b64 by Kévin Dietrich (master)
January 10, 2016, 06:36 (GMT)
OpenGL: port smoke drawing code to GLSL.

Beside the obvious ARB -> GLSL change, the texture slicing algorithm had
to be rewritten.

Although this new algorithm has the same behaviour as the old one (view
aligned slicing), it works with an arbitrary number of slices (which
could eventually be set by the user), which means we can preallocate the
buffer. The previous algorithm would slice from the begining to the end
of the volume's bbox, and draw the slices as it generates them.

Also support for ARB program was removed.

Patch by myself, with some minor fixes by Brecht.

Reviewers: brecht, #opengl_gfx

Differential Revision: https://developer.blender.org/D1694

Commit Details:

Full Hash: 0372b642705c5304f252f7691b188fc65dd51b59
Parent Commit: d330162
Lines Changed: +340, -378

2 Added Paths:

/source/blender/gpu/shaders/gpu_shader_smoke_frag.glsl (+48, -0) (View)
/source/blender/gpu/shaders/gpu_shader_smoke_vert.glsl (+12, -0) (View)

2 Deleted Paths:

/source/blender/gpu/shaders/gpu_program_smoke_color_frag.glsl (+0, -32)
/source/blender/gpu/shaders/gpu_program_smoke_frag.glsl (+0, -27)

4 Modified Paths:

/source/blender/editors/space_view3d/drawvolume.c (+254, -193) (Diff)
/source/blender/gpu/CMakeLists.txt (+4, -5) (Diff)
/source/blender/gpu/GPU_shader.h (+2, -19) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+20, -102) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021