正在加载视频...

视频加载失败

o++;vec3 p,c=vec3(8,6,7)/6e2;for(float q=2.,e,i,a,g,h,k;i++<2e2;g+=a=min(e,h-q)/3.,o-=mix(c.ggbr,c.rgrr+h/7e2,h-q)/exp(a*a*1e7)/h)for(p=vec3((FC.xy-r/q)/r.y*g,g),e=p.y-g*.7+q,p.z+=t,h=e+p.x*.4,a=q;a<5e2;a/=.8)p.xz*=rotate2D(q),h-=exp(sin(k=p.z*a)/a-1.)-.44,e-=exp(sin(k+t+t)-q)/a;

287,341 次观看 • 2 年前 •via X (Twitter)

10 条评论

yonatan 的头像
yonatan2 年前

live version (heavy):

Learn AI 的头像
Learn AI2 年前

I asked #ChatGPT about this code and this is its response The code snippet you provided appears to be a fragment of a shader, possibly written in GLSL (OpenGL Shading Language) or a similar language used for creating visual effects on graphics hardware. This code seems to be part of a procedural generation algorithm, possibly for rendering fractal-like structures or complex visual patterns in real-time. Here's a breakdown of its components and a high-level explanation of what it does: - **Variable Initialization and Loop Structure**: - `o++`: This is likely incrementing a global variable or a parameter used to control some aspect of the rendering, possibly related to time or iteration count. - The outer loop `for(float q=3.,e,i,a,g,h,k;i++<1e2;...)` initializes several floating-point variables and iterates 100 times (`1e2` is scientific notation for 100). The purpose of this loop seems to involve calculating cumulative effects over multiple iterations to generate complex patterns. - `g+=a=min(e,h-q)/4.`: This line is computing a value `a` as the minimum of `e` and `h-q`, divided by 4, and then adding it to `g`. It's manipulating variables that likely influence the visual output's geometry or color. - **Nested Loop for Detailed Calculations**: - The nested loop contains complex mathematical operations that manipulate `p` (a vector, possibly representing a position in 3D space), `e`, `h`, `a`, and other variables to iteratively modify the visual effect. - `rotate2D(q+t)`: This function call suggests that the code applies a 2D rotation to part of the vector `p.xz`, where `q+t` is likely the rotation angle. This is part of the iterative calculations that produce dynamic, possibly animated, visual patterns. - The use of exponential and trigonometric functions (`exp`, `sin`) indicates that the visual output might involve smooth transitions and oscillations, common in fractal or wave-like patterns. - **Color and Opacity Calculations**: - `o-=mix(c.ggbr,c.bgrg+h/8e2,h-q)/exp(a*a*9e6)/h`: This line is particularly complex, involving a mix function that likely blends colors or values based on the variable `h`, `q`, and other factors. The expression adjusts `o` by subtracting a calculated value, which could influence the opacity, color, or another visual aspect of the output. The mix function's inputs (`c.ggbr`, `c.bgrg+h/8e2`) suggest manipulation of color channels or gradients. - **Mathematical Expressions for Visual Effect**: - The expressions involving `exp`, `sin`, and division by `a` or `a*a` indicate the use of mathematical functions to create complex, smooth patterns or transitions in the visual effect. This code snippet is designed to run within the GPU's shader pipeline, executing very rapidly to produce intricate

Pablo Andrioli (Kali) 的头像
Pablo Andrioli (Kali)2 年前

Ok that's it. I'm retiring from shader art.

wahndo 的头像
wahndo2 年前

Beautiful

M Isa 的头像
M Isa2 年前

I tried making the code more human-readable. I'm not too sure if the variable names are correct, I gave my unminified code to ChatGPT and asked it to give the variables proper names lol

Michael Jordan 的头像
Michael Jordan2 年前

Oooo, changed the color codes... nice.

goldenhat 的头像
goldenhat2 年前

you got a typo

Eiko 的头像
Eiko2 年前

people in the replies really thinking this is a prompt for AI generation

King Tut AI 的头像
King Tut AI2 年前

Where are you putting this code to get the results?

neosborin.eth🤍🕊 的头像
neosborin.eth🤍🕊2 年前

does it come in purple

相关视频