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(); }
internal static MyMaterialDescription DescriptorFromProxy(MyMaterialProxy proxy) { return(m_reverseMapping[proxy]); }
internal static MyMaterialDescription DescriptorFromProxy(MyMaterialProxy proxy) { return m_reverseMapping[proxy]; }