glslp shaders in jitter?
- 👽R∆J∆ The Resident ∆lien👽Nov 24 2022 | 12:10 amHey Nate, that looks like fun. I looked up "GLSLP vs. GLSL" found this: https://www.reddit.com/r/RetroArch/comments/qmah2u/glsl_vs_glslp_shaders/and made sense of it like maybe Jitter wouldn't recognize the GLSLP as they're just markup-like files of setups showing what GLSL shader to actually use for what layer and what parameter settings to use for that layer.but when i look at an example i notice there's some params which aren't listed in the associated GLSL files...take this example, in this one there's 2 shaders: https://github.com/libretro/glsl-shaders/blob/master/crt/crt-blurPi-soft.glslpi look at that text and at first interpret it like maybe it means we could try this: load shader0(shaders/crt-blurPi.glsl) into one jit.gl.shader object, and then send the output of that jit.gl.shader object into a second jit.gl.shader object with shader1(shaders/crt-blurPiScanlines.glsl) loaded into it. and then, hopefully it should be as simple as sending the associated params listed below each shader the same way shown in the jit.gl.shader helpfile.except if you look at the line "filter_linear0 = true" and try to find a parameter in the associated shader files(shaders/crt-blurPiScanlines.glsl or shaders/crt-blurPi.glsl) that's called 'filter_linear0' you won't find it. you will find the very last two params listed in the .glslp text: blurGain = "0.20" blurRadius = "0.50" as params listed in the crt-blurPi.glsl: https://github.com/libretro/glsl-shaders/blob/master/crt/shaders/crt-blurPi.glsl and that's the only thing that makes sense(so my guess is that the other params like 'filter_linear0' are specific to the larger RetroArch/libretro system?)... i dunno... but at least you could just go through the entire repo, find all the GLSL files by themselves and start getting to know those by loading them into a jit.gl.shader object individually, look at the GLSL code, find the params, send those from your outer max patch and i'm sure you'll find much to poke through that way. eventually, you might also discover how the system all blends together using the specifications of the GLSLP files(maybe 'filter_linear0' is shown in some GLSL file somewhere i'm just not seeing yet?). anyways, that's my best guess, maybe others have a better clue. hope it helps for now until someone more in-the-know comes along 🍻
- wheelersoundsNov 24 2022 | 12:46 amThank you Raja! (also hi from lines!) It seems like glslp functions sort of like jxs in jitter, so it would make sense to dig for the glsl files being referenced, and go from there. I'll take a whack at it. Really appreciate your time and energy!