#include <RainCloseDropsParticles.h>
Public Member Functions | |
CloseDropsParticles (SceneManager *sceneMgr, SceneNode *parentSyst, SceneNode *parentCam) | |
~CloseDropsParticles () | |
void | createLights () |
RainLightManager * | getLightManagerPtr () |
void | updateLights () |
void | definePosTextureAndBackup () |
void | makeControlOverlay () |
void | updatePositionTexture (bool primary) |
void | updateFragmentProgramParameter (const String &name, float value) |
void | updateFragmentProgramParameter (const String &name, Ogre::Vector3 value) |
void | updateFragmentProgramParameter (const String &name, Ogre::Vector4 value) |
void | updateShaderParameters (float tslf, float rainBbSide, float streaksHeight, int nbLights, Vector3 viewPos, Vector3 viewDir, Vector3 fallVect, Vector3 boxMin, Vector3 boxMax, Vector3 lastMove, Vector3 randomMove, int useShader) |
void | updateTimeSinceLastFrame (float tslf) |
void | updateRainBilboardSideLength (float rainBbSide) |
void | updateStreaksHeight (float streaksHeight) |
void | updateLightCount (float nbLights) |
void | updateViewPos (Vector3 viewPos) |
void | updateViewDir (Vector3 viewDir) |
void | updateFallVector (Vector3 fallVect) |
void | updateBoxMin (Vector3 boxMin) |
void | updateBoxMax (Vector3 boxMax) |
void | updateLastMove (Vector3 lastMove) |
void | updateRandomMove (Vector3 randomMove) |
void | hidePositionBillboards () |
void | showPositionBillboards () |
Public Attributes | |
float | mRainWidth |
float | mRainStreaksHeight |
|
constructor, taking in parameters :
|
|
Destructor |
|
function wich creates the lights (streetlights and bindings to light the drops) |
|
function which creates the position texture and it's backup. should be called when initiaiting the rendering of the first frame (through frame listener) |
|
function to retrieve a pointer to the rainLightManager associate with this CloseDropsParticles |
|
functions which hide the particle position billboards. billboards must be hidden when rendering the scene, and visible when updating the position texture |
|
control function, to check what the textures look like |
|
functions which show the particle position billboards. billboards must be hidden when rendering the scene, and visible when updating the position texture |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function which updates the lights, if they are animated |
|
function to update one of the two position RTT's ; if set to true, the primary texture will be updated |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
function to update the different shader parameters used to update the particles positions, or render them |
|
public variable : wheight of the particles (for streaks) |
|
public variable : width of the particles |