elm-shadertoy icon indicating copy to clipboard operation
elm-shadertoy copied to clipboard

Support Shadertoy channel inputs

Open kfish opened this issue 10 years ago • 0 comments

Shadertoy defines the following inputs for data channels (music, textures, videos):

uniform float     iChannelTime[4];       // channel playback time (in seconds)
uniform vec3      iChannelResolution[4]; // channel resolution (in pixels)
uniform samplerXX iChannel0..3;          // input channel. XX=2D/Cube

Probably the first step would be to support sampler2D texture inputs, which are the most commonly used input channel, before dealing with music (which would require Web Audio support in Elm) and video.

kfish avatar May 28 '14 02:05 kfish