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

Support image texture for channel uniforms

Open Makio64 opened this issue 10 years ago • 4 comments

Use PIL to load the image. Tested with png/jpg. The noise by default is remove.

Makio64 avatar Jan 12 '16 02:01 Makio64

Awesome PR! Couple of things:

  • Can you make this PR again with mostly unchanged whitespace (instead of converting to tabs). It's hard to read the diff this way.
  • Also, if you make the default None then you can use noise when no file has been specified.

Thanks!

alexjc avatar Jan 12 '16 09:01 alexjc

Ok, I'll do that tomorrow :+1:

Makio64 avatar Jan 12 '16 09:01 Makio64

Works like a charm! Very nice work. But, it also made me wonder, would it be possible to load image sequences / videos too through PIL?

JuusoKaari avatar Sep 26 '16 20:09 JuusoKaari

@JuusoKaari : yes possible, I guess the best should be to use openCV to transform the frame of the video you want to image, and each frame you seek the video to the correct time and redo it.

Makio64 avatar Sep 29 '16 07:09 Makio64