Image samplers

Godot image sampler example

PopcornFX enables you to sample image into your effects. The source image for said effects can be exported as an attribute sampler to be set inside the plugin.
Currently, only Texture2D are supported. It means that you can sample Godot’s procedural images like gradient textures, curve textures etc, as well as external images like .png’s.

The other properties available in the image attribute sampler are explained further down this page.

Available properties

The plugin allows you to modify the following properties of your audio sampler:

At the moment, a Texture2D Resource is the only property available.
Select it from the dropdown and it will be sampled by the PopcornFX runtime. You can also load or quickload external images

Godot image sampler texture2d

Known issues / troubleshooting

Some of Godot textures do not refresh the effect it’s sampled in automatically when you modify them. You may need to restart the effect to see your changes applied into your effect