This is really cool! I wonder if there is a way to combine two shaders at once (say, Regicide and Animated Aberration) without getting the variables (uv, usually) clash?
Viewing post in Make Visual Novels! RenPy Shader Pack comments
There's a few ways to combine them, though I can't say I've looked too deeply about how they all look together.
The first way would be to apply one of the shaders to a layer and another shader to the displayables themselves. In doing that you can sort of stack two shaders together. RenPy docs on Layers here: https://www.renpy.org/doc/html/displaying_images.html#layer
The other way would be to directly edit the shader code to produce both effects, which I wouldn't recommend unless you're comfortable with writing shaders.
I’m using this shader pack in my newest game, and it works smoothly on my laptop and on Renpy’s Android emulator.
However, when running it on my phone (Xiaomi POCO M5 running on Xiaomi HyperOS 1.0.5.0 and Android version 14 UP1A.231005.007), I keep getting this error.
ShaderError: 0.39:S0001: Type mismatch in arithmetic operation between vec2 and int
Upon close inspection, it seems that this is primarily caused by the Regicide shader.
Is there anything I can do to address this problem? (I am fairly comfortable with coding, but my knowledge of shader is limited to porting shadertoy examples to Ren’py)
I don't have the code right in front of me, but if I had to guess the error is likely coming from an instance where we're multiplying or dividing a full integer (eg.: 8) instead of a float/double (e.g 8.0) or vec2 (e.g, (8.0 , 8.0)) I can't recall any specific instance where I did that, but that's where I would start looking.
Normally I'd jump in to assist directly, but I'm presently drowning in event prep work for the Spooktober VN Jam and likely won't have time to do a full dive with you for at least a few weeks. Let me know what you find in a reply here and I'll do my best to offer suggestions during my down time.
Thank you for your pointer! It’s alright, I will not expect you to do so, and I’ll likely just put the Android version on the backburner if I can’t find a way to solve this. I’ll tell you what I find, but please don’t feel like there’s any pressure to reply! (Also, Regicide slaps, and I’ve been enjoying the Animated Aberration quite a bit too)