Eulerian Smoke Simulation on the GPU
|
A fragment shader that renders a slice of a 3D texture (volume). More...
Functions | |
void | main () |
Fragment shader entry point. | |
Variables | |
uniform sampler3D | tex |
The 3D texture. | |
uniform float | slice |
The texture slice to render. | |
uniform float | opacity |
The rendered plane opacity. | |
varying vec3 | texCoords |
The incoming texture coordinates. |
A fragment shader that renders a slice of a 3D texture (volume).