openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

Add custom shader functionality #148

Open Phlarx opened 2 years ago

Phlarx commented 2 years ago

While challenging, it would be neat to have the ability to create custom shaders.

Inspiration: https://discord.com/channels/276076890714800129/424967293538402334/992398520671805530

fentras commented 2 years ago

Discord Message

Inspiration

The message is about accessing the game's pixels (framebuffer?) and then doing anything with them, be it making a screenshot, recording a video and manipulating these pixels including applying shaders (GLSL?).

I assume it could be introduced into Draw namespace. There will be two methods:

And one parameter:

Would be interesting to see how it could work out 👀

codecat commented 2 years ago

I think getting a screen buffer capture should be a very different API, because it doesn't have a whole lot to do with shaders.

Post-processing shaders use the screen buffer ofcourse, but it's still kinda different, because shaders have to be written in HLSL.