Can I apply a shader to an image or texture without a ShaderMaterial?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Banbury

I want to apply a shader to an image and export that image as a file.

So far I haven’t seen any way to use a shader outside of a ShaderMaterial. And ShaderMaterial doesn’t give me access to the rendering result.

:bust_in_silhouette: Reply From: Löne

Maybe you could try to use a ShaderMaterial attached to a sprite or a plane, render it with an adapted viewport, and use get_screen_capture() to get an image of the rendering result. To me, that’s the way to go.

Well, I had hoped for something a tad easier.

If nothing else comes up, I’ll accept it as the answer.

Banbury | 2018-03-18 10:19