Blender Git Loki

Git Commits -> Revision 18d0566

Revision 18d0566 by Clément Foucault (master)
December 14, 2018, 15:17 (GMT)
Curve Batch Cache: Add back support for shaded geometry

This changes a bit the batches data structure. Instead of using one
vbo per material we use one for all material and use index buffers for
selecting the correct triangles.

This is less optimized than before but has potential to become more
optimized by merging the wireframe data vbo into the shading one.

Also the index buffers are not strictly necessary and could be just
ranges inside the buffer. But this needs more adding things inside
GPUIndexBuf.

Commit Details:

Full Hash: 18d056601303b96fcc934c639421e1fd59b36b63
Parent Commit: c09913e
Lines Changed: +271, -185

5 Modified Paths:

/source/blender/draw/intern/draw_cache.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+7, -7) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+115, -39) (Diff)
/source/blender/draw/intern/draw_cache_impl_displist.c (+140, -135) (Diff)
/source/blender/draw/intern/draw_cache_impl_metaball.c (+8, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021