UI Mask not blocking certain effects

  • Nerrel
  • Topic Author
More
4 years 9 months ago #1 by Nerrel UI Mask not blocking certain effects was created by Nerrel
I created an HUD mask for Majora's Mask and have found that it only partially blocks effects from interfering with the UI. With the RT shader, ambient occlusion is successfully blocked from the HUD but for some reason the shader still uses the HUD as a light source and illuminates the area with the hearts or buttons. If I go into the debug view, I can see that the HUD mask is working and cutting the HUD out. The same thing also happens with the SSR shader, with the HUD being reflected on the ground even though the mask is on.

This is with no UI mask applied and the RT shader cranked up fairly high. The AO on the fence clearly cuts through the HUD, the hearts and buttons cast light on the environment:


This is with the mask active. The AO no longer cuts through, but the blue light from the button still illuminates the wall:


This is what the RT debug view shows with the mask active:


People have suggested changing the effects order around but the only arrangement that allows the mask to work at all is with UImaskTop first, RT second, and UImaskBottom last. I'm not sure if this is a limitation of the UImask itself or not. Any advice?

Please Log in or Create an account to join the conversation.

  • crosire
More
4 years 9 months ago - 4 years 9 months ago #2 by crosire Replied by crosire on topic UI Mask not blocking certain effects
This is normal. UIMask only prevents the result of an effect from being applied to certain screen portions. Those effects still get the full image as input though, so anything that uses neighboring pixels (like Bloom or RT) will have those bleeding effects.
Last edit: 4 years 9 months ago by crosire.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.