libretro / slang-shaders

251 stars 94 forks source link

[info] a shader that displays a png image. #649

Open 0wwafa opened 1 week ago

0wwafa commented 1 week ago

I wish to have a shader that instead of the "source" displays a PNG image.

I have no idea how to do so.

0wwafa commented 1 week ago

I need it so I can test some shaders with a known source.

hizzlekizzle commented 1 week ago

You can just load the image directly in RetroArch via 'load content'. Many of the shader authors do this for testing specific scenes/images.

0wwafa commented 1 week ago

You can just load the image directly in RetroArch via 'load content'. Many of the shader authors do this for testing specific scenes/images.

yep I know that but I am not using retroarch but DENISE emulator.

hizzlekizzle commented 1 week ago

in that case, you can use the imgborder shader. Just don't have an alpha cutout and it'll cover the whole image.

0wwafa commented 1 week ago

in that case, you can use the imgborder shader. Just don't have an alpha cutout and it'll cover the whole image.

It does not work for me. I need a simple shader that takes a PNG and use it as SOURCE instead of the emulator (Denise Emulator) so that I can use it to fine tune shaders.

hizzlekizzle commented 1 week ago

works fine here.

imgborder looks for a texture named 'pvm.png' in the borders/textures directory. You can either edit imgborder.slangp to point to some other image or you can rename your image to 'pvm.png' and overwrite the existing one.