Files
strudel/packages
Tristan de Cacqueray f0ddb2d595 Add initial shader module
This change adds the `loadShader` and `shader` function, to be used like this:

```strudel
await loadShader`
  // The modulation targets
  uniform float iColor;

  void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
    vec2 uv = fragCoord / iResolution.xy;
    vec3 col = 0.5 + 0.5*cos(iColor+uv.xyx+vec3(0,2,4));
    fragColor = vec4(col, 0);
  }
`

$: s("bd").shader({uniform: 'iColor'})
```
2024-10-18 11:40:09 -04:00
..
2024-06-25 10:00:26 +02:00
2024-05-31 23:07:26 +02:00
2024-08-31 23:38:23 -04:00
2024-10-18 11:40:09 -04:00
2024-05-31 23:07:26 +02:00
2024-05-31 23:07:26 +02:00
2024-05-31 23:07:26 +02:00
2024-07-25 16:07:58 +02:00
2024-07-25 09:19:41 +02:00
2024-05-31 23:07:26 +02:00
2024-09-20 21:26:41 +01:00
2024-05-31 23:07:26 +02:00
2024-05-31 23:07:26 +02:00
2024-05-31 23:07:26 +02:00
2024-08-11 12:50:14 -04:00
2024-05-31 23:07:26 +02:00

Packages

Each folder represents one of the @strudel/* packages published to npm.

To understand how those pieces connect, refer to the Technical Manual or the individual READMEs.