Eulerian Smoke Simulation on the GPU
|
A basic Blinn fragment shader for generated iso-surfaces. More...
Functions | |
void | main (void) |
Fragment shader entry point. | |
Variables | |
varying vec4 | position |
The incoming vertex positions varying. | |
uniform vec4 | surfaceColour |
The surface colour. | |
uniform sampler3D | densityTex |
The scalar field texture. | |
uniform vec3 | marchingStep |
The marching step. | |
uniform bool | inverseNormals |
A flag for inversing the suface normals. |
A basic Blinn fragment shader for generated iso-surfaces.