| 273 | } |
| 274 | |
| 275 | void polymer_pbr_standard::update_uniforms_ibl(GLuint irradiance, GLuint radiance, GLuint dfg_lut) |
| 276 | { |
| 277 | resolve_variants(); |
| 278 | gl_shader & program = compiled_shader->shader; |
| 279 | if (!compiled_shader->enabled("USE_IMAGE_BASED_LIGHTING")) throw std::runtime_error("should not be called unless USE_IMAGE_BASED_LIGHTING is defined."); |
| 280 | |
| 281 | program.bind(); |
| 282 | program.texture("sc_irradiance", bindpoint++, irradiance, GL_TEXTURE_CUBE_MAP); |
| 283 | program.texture("sc_radiance", bindpoint++, radiance, GL_TEXTURE_CUBE_MAP); |
| 284 | program.texture("s_dfg_lut", bindpoint++, dfg_lut, GL_TEXTURE_2D); |
| 285 | program.unbind(); |
| 286 | } |
| 287 | |
| 288 | void polymer_pbr_standard::update_uniforms_shadow(GLuint handle) |
| 289 | { |
no test coverage detected