projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more physics shapes
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
vblend.fs
diff --git
a/shaders/vblend.fs
b/shaders/vblend.fs
index 0849e69c8919e1e1620a393662758c51eb52cf4c..75eed174b3145681621a88296205008cc4840f69 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 vec2 aUv;
in vec3 aNorm;
in vec3 aCo;
+in vec3 aWorldCo;
#include "common_world.glsl"
#include "common_world.glsl"
@@
-17,7
+18,7
@@
void main()
vec3 vfrag = vec3(0.5,0.5,0.5);
// ws modulation
vec3 vfrag = vec3(0.5,0.5,0.5);
// ws modulation
- vec4 wgarbage = texture( uTexGarbage, aCo.xz * 0.160 );
+ vec4 wgarbage =
vec4(0.5,0.5,0.5,1.0);//
texture( uTexGarbage, aCo.xz * 0.160 );
// Creating normal patches
vec3 modnorm = (wgarbage.rgb-0.4) * 1.4;
// Creating normal patches
vec3 modnorm = (wgarbage.rgb-0.4) * 1.4;
@@
-43,7
+44,7
@@
void main()
}
// Lighting
}
// Lighting
- vec3 halfview = uCamera - aCo;
+ vec3 halfview = uCamera - a
World
Co;
float fdist = length( halfview );
halfview /= fdist;
float fdist = length( halfview );
halfview /= fdist;