mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
fix v1 procedural shaders
This commit is contained in:
parent
3525498550
commit
5dae20975a
1 changed files with 6 additions and 0 deletions
|
@ -264,12 +264,18 @@ float snoise(vec2 v) {
|
||||||
return 130.0 * dot(m, g);
|
return 130.0 * dot(m, g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define PROCEDURAL 1
|
#define PROCEDURAL 1
|
||||||
|
|
||||||
//PROCEDURAL_VERSION
|
//PROCEDURAL_VERSION
|
||||||
|
|
||||||
#ifdef PROCEDURAL_V1
|
#ifdef PROCEDURAL_V1
|
||||||
|
|
||||||
|
// shader playback time (in seconds)
|
||||||
|
uniform float iGlobalTime;
|
||||||
|
// the dimensions of the object being rendered
|
||||||
|
uniform vec3 iWorldScale;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// Unimplemented uniforms
|
// Unimplemented uniforms
|
||||||
|
|
Loading…
Reference in a new issue