You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Wrath of the Lich King (and potentially earlier game versions) game client does not simply select shaders for M2s based on the shader_id value present in the on-disk .skin files. Rather, it's determined at runtime based on a combination of blending mode, render flags, texture mapping, transparency animations, and etc.
The resulting value for shader_id, a masked integer, is then checked to select the appropriate string for vertex and pixel shaders.
To get M2s to render properly, we should implement the same shader_id calculation and shader selection logic as the official game client.
The text was updated successfully, but these errors were encountered:
fallenoak
changed the title
Implement runtime M2 shader_id logic matching Wrath of the Lich King
Implement runtime M2 shader_id calculation logic matching Wrath of the Lich King
May 31, 2016
The Wrath of the Lich King (and potentially earlier game versions) game client does not simply select shaders for M2s based on the
shader_id
value present in the on-disk.skin
files. Rather, it's determined at runtime based on a combination of blending mode, render flags, texture mapping, transparency animations, and etc.The resulting value for
shader_id
, a masked integer, is then checked to select the appropriate string for vertex and pixel shaders.To get M2s to render properly, we should implement the same
shader_id
calculation and shader selection logic as the official game client.The text was updated successfully, but these errors were encountered: