Glass: Difference between revisions
Appearance
Created page with "thumb|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 == File:Glasstex.png|alt=one glasses lens|none|thumb|201x201px|The Glass texture. Only the left side is needed before rende..." |
|||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[File:Mii glasses.png|thumb|The glasses of the face, highlighted in blue.]] | [[File:Mii glasses.png|thumb|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. | 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 [[Color Modulation|modulated]] with the [[Color Modulation#Luminance Alpha|''Luminance Alpha'']] strategy. In modulation, ''ColorR'' is determined by the ''glass_color'' field. In [[Cafe Face Library|FFL]], this is a [[Glass Color Tables|Glass Color]], and in [[nn::mii]], this is a [[Common Color Table|Common Color]].<gallery> | |||
File:Gputrace glass nomodulation.png|Before modulation | |||
File:Glasstex.png|After modulation. | |||
</gallery> | |||
== | === In nn::mii === | ||
[[File: | nn::mii Glass textures have RG channels swapped in comparison to [[FFL]]. | ||
<gallery widths="240"> | |||
File:Glass texture FFL.jpg|Renderdoc inspecting [[Mii Maker (Wii U)]] | |||
File:Glass texture NX.jpg|Renderdoc inspecting [[MiiEdit Applet|MiiEdit (Switch)]] | |||
</gallery> | |||
{{Render-Navbox}} | {{Render-Navbox}} | ||
[[Category:Face part]] | [[Category:Face part]] | ||
Latest revision as of 20:58, 24 September 2025

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
[edit | edit source]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.
-
Before modulation
-
After modulation.
In nn::mii
[edit | edit source]nn::mii Glass textures have RG channels swapped in comparison to FFL.
-
Renderdoc inspecting Mii Maker (Wii U)
-
Renderdoc inspecting MiiEdit (Switch)