diff options
author | Luca Rood <dev@lucarood.com> | 2017-05-19 18:13:48 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-05-19 18:23:19 +0300 |
commit | 42804d49b54a4522423849c402b6d55521b18512 (patch) | |
tree | 2d9bd93457b0defd65204a6189abab900db73178 /source/blender/draw/intern/draw_cache.h | |
parent | c62bec8d99bc17c861353cccf50e8b05ab0af973 (diff) |
Implement particle drawing with draw manager
This still has a couple of issues:
* Instancing is not working when multiple particle systems use the same
primitive. Only the last particle system to be drawn with a particular
primitive shows up.
* Because of colors being passed as uniforms with static variables, the
color of the collection of the last object to be evauluated is used for
all particles being displayed.
Also, note that while this is being drawn in the clay engine, this might
be moved to the object mode later intead.
Part of T51378
Diffstat (limited to 'source/blender/draw/intern/draw_cache.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache.h b/source/blender/draw/intern/draw_cache.h index b6805cd6477..a37b9998ff6 100644 --- a/source/blender/draw/intern/draw_cache.h +++ b/source/blender/draw/intern/draw_cache.h @@ -137,5 +137,7 @@ struct Batch *DRW_cache_lattice_vert_overlay_get(struct Object *ob); /* Particles */ struct Batch *DRW_cache_particles_get_hair(struct ParticleSystem *psys); +struct Batch *DRW_cache_particles_get_dots(struct ParticleSystem *psys); +struct Batch *DRW_cache_particles_get_prim(int type); #endif /* __DRAW_CACHE_H__ */ |