VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyParticleSystemModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "exampleEffectsPlugin.h"
12 
13 #include <vrvCore/DtUniqueID.h>
15 
16 #include <osgEarth/VirtualProgram>
17 #include <osg/ref_ptr>
18 
19 namespace osg
20 {
21  class StateSet;
22  class Uniform;
23 }
24 
25 namespace makVrv
26 {
27  class DtDe;
28 
30  {
31 
32  public:
33 
36  MyShaderManager(DtDe& de, osg::StateSet *ss);
37 
39  virtual ~MyShaderManager();
40 
41  //Function for changing the color that will be added to the fragments color
42  virtual void changeColorOverride(int color, float deltaChange);
43 
44  protected:
45 
47 
48  //model state set to attach the custom shaders to
49  osg::ref_ptr<osg::StateSet> myModelStateSet;
50 
51  //Uniforms used by the custom shaders
52  osg::ref_ptr<osg::Uniform> myColorToAdd;
53 
54  //virtual program for the stateset
55  osg::ref_ptr<osgEarth::VirtualProgram> myVirtualProgram;
56 
57  };
58 
65  {
66  public:
69 
71  virtual ~MyParticleSystemModel();
72 
75  virtual void setModelInstance(DtModelInstance* modelInstance );
76 
81  virtual void changeColorOverride( int color, float deltaChange );
82 
83  protected:
85  };
86 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)