shaderToyTexture icon indicating copy to clipboard operation
shaderToyTexture copied to clipboard

iMouse iChannel0 support

Open vitos1k opened this issue 9 months ago • 0 comments

Hi! I've managed to add support for image textures through iChannel0-10

teximage = bpy.data.images["iChannel0"] self.texture = gpu.texture.from_image(teximage)

self.shader.uniform_sampler('iChannel0', self.texture)

And it works, shaders are displayed properly, but there is a problem. Shader keeps calling self.cancel and stops refreshing. And i can't find an instance of it, to call Running_modal other than recreating through operator (glsltexture). Maybe we could add some interface to add custom textures to iChannel channels, and have explicit buttons to call execute and stop refreshing. Maybe i could look into it, but are you available for merging pull requests or should i just fork it and update on my own repo?

vitos1k avatar Mar 13 '25 07:03 vitos1k