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

Method GetHashCode

ZEngine/src/MixedTextureMaterial.cpp:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 }
9
10 unsigned int MixedTextureMaterial::GetHashCode() {
11 auto hash = static_cast<unsigned int>(m_interpolate_factor) ^ m_second_texture->GetIdentifier();
12
13 return hash ^ ShaderMaterial::GetHashCode();
14 }
15
16 void MixedTextureMaterial::SetSecondTexture(Ref<Textures::Texture>& texture) {
17 m_second_texture = texture;

Callers

nothing calls this directly

Calls 1

GetIdentifierMethod · 0.45

Tested by

no test coverage detected