Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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?

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.

(+1)

Right. The layer + displayable combo works, thank you. I don’t think you’d want to be too crazy with the combinations anyway, this is partly fuelled by sheer curiosity xD

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)

You’re right on the money! The u_scale and u_flipScale in the file MVNTemplates.rpy are integers, and changing them to floats solve the problem! Thank you very much!

Awesome, glad that was the right direction!  Looking forward to seeing what you make!

We plan to release for SuNoFes in September 8th. Do you have an email address I could send the key to? :)

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy