0005: thoughtform complete
This commit is contained in:
parent
269f54882f
commit
86f1634b5f
18 changed files with 2632 additions and 14254 deletions
|
@ -17,10 +17,11 @@ out vec4 fragColor;
|
|||
|
||||
const float margin = 0.5;
|
||||
|
||||
// float r = length(m);
|
||||
// float a = atan(m.y, m.x);
|
||||
// float v = sin(100.*(sqrt(r)-0.02*a-.3*t));
|
||||
// return clamp(v,0.,1.);
|
||||
vec3 hsv2rgb(vec3 c) {
|
||||
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
|
||||
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
|
||||
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
|
||||
}
|
||||
|
||||
void main() {
|
||||
// 0..1 to -1..1
|
||||
|
@ -33,6 +34,11 @@ void main() {
|
|||
float theta = atan(cUV.y, cUV.x) ;
|
||||
float spiral = sin(100.0 * (sqrt(circleDistance*20.0) - 10.0 * theta - 0.01 * u_time * 0.001));
|
||||
|
||||
float edgeLightZone = pow(clamp(abs(dot(cUV.xyx, light_pos)), 0.0, 1.0) * 2.0, 7.0);
|
||||
fragColor = vec4(0.0, spiral, edgeLightZone, 1.0);
|
||||
}
|
||||
float edgeLightZone = pow(clamp(abs(dot(cUV.xyx, light_pos)), 0.0, 1.0) * 2.0, 4.0);
|
||||
|
||||
float colorSpiral = sin(100.0 * (sqrt(circleDistance * 10.0) - 0.001 * theta - 0.3 * u_time * 0.00005));
|
||||
vec3 hueRotation = hsv2rgb(vec3(colorSpiral, 1.0, 0.5));
|
||||
|
||||
fragColor = vec4(hueRotation * spiral * edgeLightZone, 1.0);
|
||||
fragColor.rgb += min(spiral, 0.0041666);
|
||||
}
|
1474
src/meshes/uvsphere-inverted.ply
Normal file
1474
src/meshes/uvsphere-inverted.ply
Normal file
File diff suppressed because it is too large
Load diff
12
src/meshes/uvsphere-inverted.ts
Normal file
12
src/meshes/uvsphere-inverted.ts
Normal file
File diff suppressed because one or more lines are too long
15299
src/meshes/uvsphere.ply
15299
src/meshes/uvsphere.ply
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue