Jump to content

Glass: Difference between revisions

From Mii Technical Wiki
No edit summary
No edit summary
Line 5: Line 5:
File:Gputrace glass nomodulation.png|Before modulation
File:Gputrace glass nomodulation.png|Before modulation
File:Glasstex.png|After modulation.
File:Glasstex.png|After modulation.
</gallery>{{Render-Navbox}}
</gallery>
 
=== In nn::mii ===
nn::mii has RG channels swapped in comparison to [[FFL]].
 
<gallery>
File:Glass texture FFL.jpg|Renderdoc inspecting Cemu
File:Glass texture NX.jpg|Renderdoc inspecting Ryujinx
</gallery>
{{Render-Navbox}}
[[Category:Face part]]
[[Category:Face part]]

Revision as of 20:55, 24 September 2025

The glasses of the face, highlighted in blue.

In Mii rendering, the glasses are part of the face. The glass model is a quad model placed in front of the mask, and a texture is projected onto it. The glass texture is made up of one lens, which is flipped in rendering for each side.

Texture

The texture contains RG color channels and is modulated with the Luminance Alpha strategy. In modulation, ColorR is determined by the glass_color field. In FFL, this is a Glass Color, and in nn::mii, this is a Common Color.

In nn::mii

nn::mii has RG channels swapped in comparison to FFL.