projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
connection semantics; state change bug
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
point_map.h
diff --git
a/shaders/point_map.h
b/shaders/point_map.h
index 5330dec1d3e496bba8330c5414c822deba31ee12..5c674cd6fa5534327b448cc00c3822dad7cfaca5 100644
(file)
--- a/
shaders/point_map.h
+++ b/
shaders/point_map.h
@@
-53,7
+53,7
@@
static struct vg_shader _shader_point_map = {
"{\n"
" vec3 co = p*s;\n"
" vec2 r2 = rand_hash22(p.xz);\n"
"{\n"
" vec3 co = p*s;\n"
" vec2 r2 = rand_hash22(p.xz);\n"
-" vec3 grid =
vec3(floor(co.x),co.y,floor(co.z
)) * (1.0/s);\n"
+" vec3 grid =
(vec3(floor(co.x),co.y,floor(co.z))+vec3(0.5,0.0,0.5
)) * (1.0/s);\n"
"\n"
" float t1 = 1.0-t;\n"
" t1 = 1.0-t1*t1;\n"
"\n"
" float t1 = 1.0-t;\n"
" t1 = 1.0-t1*t1;\n"