@ -24,11 +24,10 @@ public partial class RenderModule
uq . GameAssets . AddAliasModel ( aliasModel ) ;
// DEBUG kept for reference for the moment, how to address skins & texture frames, and full-bright textures
var material = new Material ( Shader . Find ( "Universal Render Pipeline/Simple Lit" ) ) ;
uint texNum = glTextures [ 0 ] [ 0 ] . texNum ;
if ( uq . GameAssets . TryGetTexture ( texNum , out var texture ) )
{
material . m ainTexture = texture ;
aliasModel . Textures . M ainTexture = texture ;
}
if ( fbTextures ! = null & & fbTextures [ 0 ] ! = null & & fbTextures [ 0 ] [ 0 ] ! = null )
@ -36,9 +35,7 @@ public partial class RenderModule
var fbTexNum = fbTextures [ 0 ] [ 0 ] . texNum ;
if ( uq . GameAssets . TryGetTexture ( fbTexNum , out var fbTexture ) )
{
material . EnableKeyword ( "_EMISSION" ) ;
material . SetTexture ( "_EmissionMap" , fbTexture ) ;
material . SetColor ( "_EmissionColor" , Color . white ) ;
aliasModel . Textures . FullBrightTexture = fbTexture ;
}
}