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

Method Apply

ZEngine/src/MixedTextureMaterial.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void MixedTextureMaterial::Apply(Shaders::Shader* const shader) {
29 ShaderMaterial::Apply(shader);
30
31 shader->SetUniform("texture_sampler_0", 0);
32 shader->SetUniform("texture_sampler_1", 1);
33 shader->SetUniform("material.interpolation_factor", m_interpolate_factor);
34
35 m_texture->Bind();
36 m_second_texture->Bind(1);
37 }
38
39} // namespace ZEngine::Rendering::Materials

Callers

nothing calls this directly

Calls 2

SetUniformMethod · 0.80
BindMethod · 0.45

Tested by

no test coverage detected