6 #include "IDiffuseMaterial.h"
10 #include "GLHelpers.h"
11 #include "LightmappedPackedDiffuseShader.h"
24 const TMaterialId materialId,
25 const std::string& name,
30 Rendering::TextureMinifyType textureMinifyType,
31 bool useAlternativeAmbient,
35 bool IsUsingAlternativeAmbient()
const {
return m_useAlternativeAmbient; }
36 void UseAlternativeAmbient(
bool useAlternativeAmbient) { m_useAlternativeAmbient = useAlternativeAmbient; }
38 const TMaterialId GetId()
const {
return m_id; }
39 const Shader& GetShader()
const {
return m_shader; }
40 const std::string& GetName()
const {
return m_name; }
51 Helpers::GLHelpers::BindTexture2D(glState, m_shader.GetLightmapSamplerId(), lightmapId, Rendering::TextureMinify_Nearest,
false);
54 const TMaterialId m_id;
55 const std::string m_name;
60 Rendering::TextureMinifyType m_textureMinifyType;
62 bool m_useAlternativeAmbient;