projects
/
mandelwow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the mandelwow corona fade slower.
[mandelwow.git]
/
shaded.vert
diff --git
a/shaded.vert
b/shaded.vert
index 65bc65dd42bcf323c61d84cff526b10d772086cc..887d94c826671469bedbef540d5ce336143773d9 100644
(file)
--- a/
shaded.vert
+++ b/
shaded.vert
@@
-5,13
+5,11
@@
in vec3 position;
in vec3 normal;
out vec4 color;
in vec3 normal;
out vec4 color;
-uniform mat4 perspective;
-uniform mat4 view;
uniform mat4 model;
uniform mat4 model;
+uniform mat4 perspview;
void main() {
void main() {
- mat4 modelview = view * model;
- mat4 m = perspective * modelview;
+ mat4 m = perspview * model;
vec3 dark = vec3(0.0, 0.0, 0.1);
vec3 bright = vec3(0.0, 0.0, 0.9);
vec3 u_light = vec3(-0.5, -0.7, -0.6);
vec3 dark = vec3(0.0, 0.0, 0.1);
vec3 bright = vec3(0.0, 0.0, 0.9);
vec3 u_light = vec3(-0.5, -0.7, -0.6);