This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
[BUG-225337] Alpha Masked surfaces having a diffuse with alpha channel and normal and specular applied lose their shadows #4169
Labels
What just happened?
Steps to reproduce:
Step 1: Get this avatar: https://marketplace.secondlife.com/p/Orange-Nova-Snokra-Snake/13541472
Step 2: Unpack said avatar and wear its body.
Step 3: Wear the HUD, click the egg to extend the HUD, select the square icon to bring up the skin selection and click the first skin (brown) to apply it.
Step 4: Observe how the shadows of the worn avatar are invisible.
(Bonus Step 5): Select the avatar and remove either the specular or normal map.
(Bonus Step 6): Confirm that the avatar has a shadow again.
(Bonus Step 7): Select the avatar and change its diffuse alpha mode from "None" to "Alpha Mask" for single or multiple parts with both specular and normal map applied.
(Bonus Step 8): Confirm the changed parts now cast a shadow again.
Note: The reason we use the HUD to change the skin is to make sure we have a skin with an alpha channel in it.
What were you doing when it happened?
My avatar shadows vanished.
What were you expecting to happen instead?
I'd see a shadow.
Other information
Further testing seems to indicate that shadows vanish when the diffuse contains an alpha channel but is unused (set to None), setting the alpha mode to "Masking" makes the shadows reappear, also using a texture with no alpha channel does cast a shadow as well. Could this be an issue of the code detecting that there is an alpha channel without checking for the "None" alpha mode, e.g the Viewer handling it as alpha even when we clearly tell it not to?
Note: I'm testing this on my own Viewer currently as all LL Viewer compiles are broken and don't rez textures due to Openjpeg hence why i'd like to have confirmation whether this is something actually happening or just a weird interaction with my Viewer (which i hope it is not).
Attachments
Original Jira Fields
The text was updated successfully, but these errors were encountered: