From 68fc51f6cba6c47a795eea91b9a38f25d25b3839 Mon Sep 17 00:00:00 2001 From: Neil Mendoza Date: Sun, 8 Apr 2018 17:16:10 -0700 Subject: [PATCH] changed visibility of setUniforms to allow for custom rendering code --- src/GpuParticles.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/GpuParticles.h b/src/GpuParticles.h index 19ae519..94f1bcf 100644 --- a/src/GpuParticles.h +++ b/src/GpuParticles.h @@ -86,10 +86,13 @@ namespace itg void save(const string& fileName); void load(const string& fileName); - - private: + + // this will be called for you by ofxGpuParticles::draw() + // you should only need to call it yourself if you are not + // using that function (i.e. custom particle rendering) void setUniforms(ofShader& shader); - + + private: ofFbo fbos[2]; ofVboMesh mesh; ofVboMesh quadMesh;