Updates to GpuSmokeSim3D
- Advect and ComputeRHS now share ScreenQuad.vs as vertex program
- Moved setting textureUnit uniform values outside of advect()
- Cleaned up ComputeRHS.fs to support 3D textures
Updates to ComputeRHS.fs
cellIndex and cellIsSolid() computations seem to be working
Fixed Timer from displaying nan
Happened when calling getAverageElapsedTime() before ever
calling start() and stop().
Update to ComputeRHS shader program
cellIndex was changed to floating point with half integer values so
that accessing textures grabs values at center of texel, which is
not interpolated.
Fixed VolumeRenderer texture coordinates
Made it so (s,t,r) form a right handed coordinate system.
Updates to ComputeRHS
Passing all tests