guides:gpu
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| guides:gpu [2024/07/13 10:38] – Add (placeholder) function usage documentation admin | guides:gpu [2024/07/16 20:20] (current) – Add time, remove TODO b/c it works admin | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| return a + b*cos( 6.28318*(c*t+d) ); | return a + b*cos( 6.28318*(c*t+d) ); | ||
| }} | }} | ||
| - | ##### TODO:::: Test this out on a real Folk system | + | |
| Wish the GPU compiles pipeline " | Wish the GPU compiles pipeline " | ||
| - | {vec2 p0 vec2 p1 vec2 p2} { | + | {vec2 p0 vec2 p1 vec2 p2 float u_time} { |
| vec2 vertices[4] = vec2[4](p0, p1, p2, p0); | vec2 vertices[4] = vec2[4](p0, p1, p2, p0); | ||
| return vertices[gl_VertexIndex]; | return vertices[gl_VertexIndex]; | ||
| } {fn palette} { | } {fn palette} { | ||
| - | vec3 gradientColor = palette(gl_FragCoord.x, | + | vec3 gradientColor = palette(gl_FragCoord.x, |
| return vec4(gradientColor, | return vec4(gradientColor, | ||
| } | } | ||
| Line 56: | Line 56: | ||
| Wish $this is outlined blue | Wish $this is outlined blue | ||
| - | When $this has region /r/ { | + | When $this has region /r/ & the clock time is /t/ { |
| set r' [region move $r down 100%] | set r' [region move $r down 100%] | ||
| - | Wish the GPU draws pipeline " | + | Wish the GPU draws pipeline " |
| - | } | + | }</ |
| - | </ | + | |
guides/gpu.txt · Last modified: by admin
