Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(161)

Unified Diff: intern/cycles/render/object.h

Issue 6242069: Particle Info node for Cycles Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Improvements suggested by Brecht Created 12 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: intern/cycles/render/object.h
===================================================================
--- intern/cycles/render/object.h (revision 47606)
+++ intern/cycles/render/object.h (working copy)
@@ -35,6 +35,11 @@
/* Object */
+struct Particle {
+ float age;
+ float lifetime;
+};
+
class Object {
public:
Mesh *mesh;
@@ -49,6 +54,9 @@
bool use_motion;
bool use_holdout;
+ int particle_id;
+ vector<Particle> particles;
+
Object();
~Object();
@@ -69,6 +77,7 @@
void device_update(Device *device, DeviceScene *dscene, Scene *scene, Progress& progress);
void device_update_transforms(Device *device, DeviceScene *dscene, Scene *scene, Progress& progress);
+ void device_update_particles(Device *device, DeviceScene *dscene, Scene *scene, Progress& progress);
void device_free(Device *device, DeviceScene *dscene);
void tag_update(Scene *scene);

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b