X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fcubemap.cpp;h=4679590d3e65057076e5d8d7b0e749611c2f40ee;hb=922fac753e31d97fc88daa166e93e4c5572bd2ba;hp=512f519f260d619450dd9f60f938ec1f2db0dffa;hpb=9034e81679eeeaa3d1d5d643d3f924d9edb45a68;p=libs%2Fgl.git diff --git a/demos/cubemap.cpp b/demos/cubemap.cpp index 512f519f..4679590d 100644 --- a/demos/cubemap.cpp +++ b/demos/cubemap.cpp @@ -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);