Skip to content

iMouse iChannel0 support #2

@vitos1k

Description

@vitos1k

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions