]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/pbrmaterial.cpp
Implement image-based lighting in PbrMaterial
[libs/gl.git] / source / materials / pbrmaterial.cpp
index 783a8bed2c37eab456e2283e5274d97394fc2075..7e7bd5cf642dbf5e8c4f93284cea5e1173b47bf4 100644 (file)
@@ -47,6 +47,8 @@ const Texture2D &PbrMaterial::get_or_create_fresnel_lookup()
        const Program &shprog = resources.get<Program>("_pbr_fresnel_lookup.glsl.shader");
        ProgramData shdata;
        shdata.uniform("n_samples", 1024);
+       // Not actually used here, but put it in to satisfy the interface
+       shdata.uniform("roughness", 0.0f);
 
        const Mesh &mesh = resources.get<Mesh>("_fullscreen_quad.mesh");
        Framebuffer fresnel_lookup_fbo;