3 #include "InteriorsMaterialBase.h"
4 #include "InteriorRenderable.h"
5 #include "UnityCallbacks.h"
17 const void* unityMaterialHandle,
19 const Rendering::TMaterialId materialId,
20 const std::string& name,
23 bool useAlternativeAmbient,
26 const v4& diffuseColor,
27 Resources::Interiors::InteriorsRenderableLayer::Type renderableLayer,
34 materialAssignmentObserver,
35 useAlternativeAmbient,
39 , m_unityMaterialHandle(unityMaterialHandle)
41 , m_isStencilMirror(isStencilMirror)
42 , m_indoorMapCallbacks(indoorMapCallbacks)
48 m_indoorMapCallbacks.DeleteMaterial(m_unityMaterialHandle);
51 const void* GetUnityMaterialHandle()
const
53 return m_unityMaterialHandle;
63 InteriorsMaterialBase::OnAssignedToRenderable(renderable);
65 if (m_isStencilMirror)
67 renderable.SetStencilMirrorType(Resources::Interiors::StencilMirror_Mirror);
79 const void* m_unityMaterialHandle;
81 const bool m_isStencilMirror;