| 178 | } |
| 179 | |
| 180 | void 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 // |
no test coverage detected