X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fcubemap.cpp;h=4679590d3e65057076e5d8d7b0e749611c2f40ee;hb=c44e9005200af76266ef44c158688e112ad4bb32;hp=98d0ba245f0ab8bab0c6d4a7cd35a7f603bc8280;hpb=0c731643d6363eb4c492e836ffb919cb7c0a3035;p=libs%2Fgl.git diff --git a/demos/cubemap.cpp b/demos/cubemap.cpp index 98d0ba24..4679590d 100644 --- a/demos/cubemap.cpp +++ b/demos/cubemap.cpp @@ -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);