MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / StandardMaterial

Method StandardMaterial

ZEngine/src/StandardMaterial.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace ZEngine::Rendering::Materials {
5
6 StandardMaterial::StandardMaterial()
7 : ShaderMaterial(Shaders::ShaderBuiltInType::STANDARD), m_tile_factor(1.0f), m_tint_color(glm::vec4(1.0f)), m_specular_map(Textures::CreateTexture(1, 1)) {
8 m_material_name = typeid(*this).name();
9 }
10
11 unsigned int StandardMaterial::GetHashCode() {
12 auto hash = static_cast<unsigned int>(m_tile_factor) ^ static_cast<unsigned int>(m_tint_color.x) ^ static_cast<unsigned int>(m_tint_color.y)

Callers

nothing calls this directly

Calls 1

CreateTextureFunction · 0.85

Tested by

no test coverage detected