This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Recently, I've been attempting to make a ViewportTexture, aiming to achieve a similar effect to what Parthfinider: Kingmakers have in their travel sequences.

Seen here: https://youtu.be/CrMZi2EXXSE?t=49

I've been able to get close to the desired effect: https://imgur.com/rsIRw8c

This was easy to do when setting the "Clear Mode" on the Viewport to "Next frame" or "Never". However, it has limited what the shader can do. I've been trying to mix the map and the mask so I can get a more blended effect, but the viewport completely wipes it out if the alpha of the mix is below 0.98.

.98 < mix(Alpha): https://imgur.com/cbjTtaK

.98 > mix(Alpha): https://imgur.com/FW5blFR

Can someone please explain to me why this happens?

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.