Object basic random vertex shader.
More...
|
in vec3 | v |
| Position.
|
|
uniform mat4 | mvp |
| The transformation matrix.
|
|
out vec3 | col |
| Interpolated vertex color.
|
|
Object basic random vertex shader.
◆ baseHash()
uint GPUShaders::Vert::Object_basic_random::baseHash |
( |
uint |
p | ) |
|
|
inline |
Compute the based hash for a given index.
- Parameters
-
- Returns
- the hash
◆ hash31()
vec3 GPUShaders::Vert::Object_basic_random::hash31 |
( |
int |
x | ) |
|
|
inline |
◆ main()
void GPUShaders::Vert::Object_basic_random::main |
( |
| ) |
|
|
inline |
Apply the MVP transformation to the input vertex. Color each face with a random color.
The documentation for this class was generated from the following file:
- resources/common/shaders/objects/object_basic_random.vert