group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
SmokeEffect.cpp File Reference

Implementation of volumetric smoke billboard particle effect. More...

#include "SmokeEffect.hpp"
#include "ecs/components/ParticleEmitterTag.hpp"
#include "ecs/components/Position.hpp"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <glm/glm.hpp>
#include <glm/gtc/constants.hpp>
Include dependency graph for SmokeEffect.cpp:

Functions

static float randf ()
 Return a random float in [0, 1].
 
static float randRange (float lo, float hi)
 Return a random float in [lo, hi].
 

Detailed Description

Implementation of volumetric smoke billboard particle effect.

Function Documentation

◆ randf()

static float randf ( )
static

Return a random float in [0, 1].

Here is the caller graph for this function:

◆ randRange()

static float randRange ( float  lo,
float  hi 
)
static

Return a random float in [lo, hi].

Parameters
loLower bound (inclusive).
hiUpper bound (inclusive).
Returns
Random value uniformly distributed between lo and hi.
Here is the call graph for this function: