]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/cubemap.cpp
Adjust the desert pillars demo to recent changes
[libs/gl.git] / demos / cubemap.cpp
index 98d0ba245f0ab8bab0c6d4a7cd35a7f603bc8280..4679590d3e65057076e5d8d7b0e749611c2f40ee 100644 (file)
@@ -84,7 +84,7 @@ int main()
        material.set_specular(GL::Color(1.0));
        material.set_shininess(100);
 
-       GL::Program::StandardFeatures features;
+       GL::ProgramBuilder::StandardFeatures features;
        features.lighting = true;
        features.specular = true;
        features.material = true;
@@ -93,6 +93,8 @@ int main()
        GL::ProgramData shdata;
        shdata.uniform("environment", 0);
        shdata.uniform("reflectivity", 0.5f);
+       float env_mat[9] = { 1, 0, 0, 0, 1, 0, 0, 0, 1 };
+       shdata.uniform_matrix3("env_eye_matrix", env_mat);
 
        GL::MatrixStack::projection() = GL::Matrix::frustum_centered(0.15, 0.1, 0.1, 10);