예제 #1
0
 internal static void LoadTextures(MyMaterialProxy proxy, MyMaterialDescription desc)
 {
     {
         proxy.SetTexture("ColorMetalTexture",
                          MyTextureManager.GetColorMetalTexture(desc.TextureColorMetalPath).ShaderView);
         proxy.SetTexture("NormalGlossTexture",
                          MyTextureManager.GetNormalGlossTexture(desc.TextureNormalGlossPath).ShaderView);
         proxy.SetTexture("AmbientOcclusionTexture",
                          MyTextureManager.GetExtensionsTexture(desc.TextureAmbientOcclusionPath).ShaderView);
         if (desc.TextureAlphamaskPath != null)
         {
             proxy.SetTexture("AlphamaskTexture",
                              MyTextureManager.GetAlphamaskTexture(desc.TextureAlphamaskPath).ShaderView);
         }
     }
     proxy.RecalcTexturesHash();
 }
예제 #2
0
 internal static void LoadTextures(MyMaterialProxy proxy, MyMaterialDescription desc)
 {
     {
         proxy.SetTexture("ColorMetalTexture",
             MyTextureManager.GetColorMetalTexture(desc.TextureColorMetalPath).ShaderView);
         proxy.SetTexture("NormalGlossTexture",
             MyTextureManager.GetNormalGlossTexture(desc.TextureNormalGlossPath).ShaderView);
         proxy.SetTexture("AmbientOcclusionTexture",
             MyTextureManager.GetExtensionsTexture(desc.TextureAmbientOcclusionPath).ShaderView);
         if (desc.TextureAlphamaskPath != null)
         {
             proxy.SetTexture("AlphamaskTexture",
                 MyTextureManager.GetAlphamaskTexture(desc.TextureAlphamaskPath).ShaderView);
         }
     }
     proxy.RecalcTexturesHash();
 }
예제 #3
0
 internal static MyMaterialDescription DescriptorFromProxy(MyMaterialProxy proxy)
 {
     return(m_reverseMapping[proxy]);
 }
예제 #4
0
 internal static MyMaterialDescription DescriptorFromProxy(MyMaterialProxy proxy)
 {
     return m_reverseMapping[proxy];
 }