Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
Learn More
Khaydar 92 1 Dec, 2023 @ 4:31pm
Mod Making Issue: Alphas and Abyssal tank glass hue
Hello,
Alpha planes are visible in animals that are placed inside abyssal tanks due to the glass tint.
Usually it's not visible, however it shows when the plane/object crosses over another texture.

I've tried making the textures unaffected by renaming them (_ignore_tint), it only got worse, becoming visible at all times. Is there a way to work around this?
https://imgur.com/a/mwlvOsX
Last edited by Khaydar; 1 Dec, 2023 @ 4:44pm
< >
Showing 1-1 of 1 comments
Twice Circled  [developer] 3 2 Dec, 2023 @ 4:01am 
Unfortunately not, it's an issue I encountered designing the official content too.

It's due to how the tint shader works, which is what allows all objects that are *not* marked ignore_tint to appear darker inside the abyssal tanks.

The way to think of it is each bit of geometry has a flag: either ignore_tint = true or false. When it's true, it ignores the tint effect and just uses the pixel colour in the texture. When it's false, the tint shader inside the abyssal tank darkens the texture.

The problem is when using alpha. The flag of the geometry that is closest to the camera takes precedence, so if the closest geometry does not ignore_tint, it overrides the geometry behind it. And visa versa.

There is no solution, only a workaround: use ignore_tint and alpha as little as possible, thus reducing the chance of any overlap. In the official content I really wanted to use ignore_tint to make the bioluminescent animals look interesting. To balance this I used alpha only a tiny amount (sea whip, peacock squid and barreleye only).
Last edited by Twice Circled; 2 Dec, 2023 @ 4:01am
< >
Showing 1-1 of 1 comments
Per page: 1530 50