MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / update_uniforms_shadow

Method update_uniforms_shadow

libraries/lib-engine/src/material.cpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void polymer_blinn_phong_standard::update_uniforms_shadow(GLuint handle)
181{
182 resolve_variants();
183 gl_shader & program = compiled_shader->shader;
184 if (!compiled_shader->enabled("ENABLE_SHADOWS")) throw std::runtime_error("should not be called unless ENABLE_SHADOWS is defined.");
185
186 program.bind();
187 program.texture("s_csmArray", bindpoint++, handle, GL_TEXTURE_2D_ARRAY);
188 program.unbind();
189}
190
191//////////////////////////////////////////////////////
192// Physically-Based Metallic-Roughness Material //

Callers 1

run_forward_passMethod · 0.80

Calls 4

enabledMethod · 0.80
bindMethod · 0.45
textureMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected