Eulerian Smoke Simulation on the GPU
|
A vertex shader that outputs. More...
Functions | |
void | main (void) |
Vertex shader entry point. | |
Variables | |
uniform mat4 | projectionMatrix |
The projection matrix generated from the Camera. | |
uniform mat4 | ViewMatrix |
The ViewMatrix generated from the Camera. | |
uniform mat4 | ModelMatrix |
The ModelMatrix generated from the scene transforms. | |
const vec3 | madd = vec3(0.5, 0.5, 0.5) |
Multiplication / addition coefficient for the computation of the texture coordinates. | |
attribute vec3 | inPosition |
The incoming vertex positions. | |
varying vec3 | texCoords |
The calculated texture coordinates. |
A vertex shader that outputs.
uniform mat4 projectionMatrix |
The projection matrix generated from the Camera.
the vertex positions and texture coordinates to the next processing stage.