Blender Git Loki
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)
/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)
/source/blender/gpu/shaders/gpu_program_smoke_frag.glsl (+0, -27)