projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
a lot
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
vblend.fs
diff --git
a/shaders/vblend.fs
b/shaders/vblend.fs
index 0849e69c8919e1e1620a393662758c51eb52cf4c..023721e7264829bad890d59fb821e003029efa97 100644
(file)
--- a/
shaders/vblend.fs
+++ b/
shaders/vblend.fs
@@
-9,6
+9,7
@@
in vec4 aColour;
in vec2 aUv;
in vec3 aNorm;
in vec3 aCo;
+in vec3 aWorldCo;
#include "common_world.glsl"
@@
-43,7
+44,7
@@
void main()
}
// Lighting
- vec3 halfview = uCamera - aCo;
+ vec3 halfview = uCamera - a
World
Co;
float fdist = length( halfview );
halfview /= fdist;