param
This commit is contained in:
parent
71be209a2f
commit
6944f03cc5
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ void main()
|
||||||
if(gAge < 0.005) return;
|
if(gAge < 0.005) return;
|
||||||
// if(length(gTarget.xyz) > 1000) return;
|
// if(length(gTarget.xyz) > 1000) return;
|
||||||
vOffset = (vPrevPosition[i].xyz - vPosition[i].xyz);
|
vOffset = (vPrevPosition[i].xyz - vPosition[i].xyz);
|
||||||
vOffset += normalize(vOffset) * 20;
|
vOffset += normalize(vOffset) * 10;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// vOffset = (vPrevPosition[i].xyz - vPosition[i].xyz);
|
// vOffset = (vPrevPosition[i].xyz - vPosition[i].xyz);
|
||||||
|
|
|
@ -196,7 +196,7 @@ void main()
|
||||||
int trapped = 0;
|
int trapped = 0;
|
||||||
if(age < 0.001) { // targetting
|
if(age < 0.001) { // targetting
|
||||||
target.w = 0;
|
target.w = 0;
|
||||||
if(mod(u_time*0.1+simplex3d_fractal(vec3(texCoordVarying,u_time)),1) > length(texCoordVarying.st/fraction - uHottest0.st + mod(random3(pos).xy, 8)-vec2(4))/10) {
|
if(mod(u_time*0.1+simplex3d_fractal(vec3(texCoordVarying,u_time)),1) > length((texCoordVarying.st/fraction+vec2(simplex3d(pos*0.01*3+vec3(u_time,0,0)),simplex3d(pos*0.005+vec3(0,u_time,0))*16)) - uHottest0.st + mod(random3(pos).xy, 8)-vec2(4))/10) {
|
||||||
vec2 h = uHottest1.st;
|
vec2 h = uHottest1.st;
|
||||||
vec4 hray = texture(u_world, h);
|
vec4 hray = texture(u_world, h);
|
||||||
float hdepth = -depth * 65535.0;
|
float hdepth = -depth * 65535.0;
|
||||||
|
@ -210,7 +210,7 @@ void main()
|
||||||
trapped = 1;
|
trapped = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(mod(u_time*0.1+simplex3d_fractal(vec3(texCoordVarying,u_time)),1) > length(texCoordVarying.st/fraction - uHottest1.st + mod(random3(pos).xy, 8)-vec2(4))/10) {
|
else if(mod(u_time*0.1+simplex3d_fractal(vec3(texCoordVarying,u_time)),1) > length(texCoordVarying.st/fraction+vec2(simplex3d(pos*0.01*3+vec3(u_time,0,0)),simplex3d(pos*0.005+vec3(0,u_time,0))*16) - uHottest1.st + mod(random3(pos).xy, 8)-vec2(4))/10) {
|
||||||
vec2 h = uHottest0.st;
|
vec2 h = uHottest0.st;
|
||||||
vec4 hray = texture(u_world, h);
|
vec4 hray = texture(u_world, h);
|
||||||
float hdepth = -depth * 65535.0;
|
float hdepth = -depth * 65535.0;
|
||||||
|
|
Loading…
Reference in a new issue