Hey all, this is a really weird question, but I want to load in a custom GLSL shader I wrote as soon as my game starts. I've tried reading on PIXI.js but I cannot, for the life of me, understand what is going on in JavaScript due to the constant dynamic typing. I have a shader that would basically convert the image from the top one to the bottom (see spoiler), but I want the shader to be turned on as soon as the game starts loading.
No, it doesn't have to account for players, or menus or anything, just assume the entire canvas is a single sampler2D, to be able to load a single shader, and maybe reload it in the middle of the game in case for quick palette swaps.
No shader:
With shader:
With shader:
No, it doesn't have to account for players, or menus or anything, just assume the entire canvas is a single sampler2D, to be able to load a single shader, and maybe reload it in the middle of the game in case for quick palette swaps.