|
|
|
@ -471,11 +471,11 @@ vert.addFile("MyShader.vert"); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
{ |
|
|
|
{ |
|
|
|
MyShader shader; |
|
|
|
|
|
|
|
GL::Mesh mesh; |
|
|
|
GL::Mesh mesh; |
|
|
|
Matrix4 transformation, projection; |
|
|
|
Matrix4 transformation, projection; |
|
|
|
GL::Texture2D diffuseTexture, specularTexture; |
|
|
|
GL::Texture2D diffuseTexture, specularTexture; |
|
|
|
/* [AbstractShaderProgram-rendering] */ |
|
|
|
/* [AbstractShaderProgram-rendering] */ |
|
|
|
|
|
|
|
MyShader shader; |
|
|
|
shader.setTransformationMatrix(transformation) |
|
|
|
shader.setTransformationMatrix(transformation) |
|
|
|
.setProjectionMatrix(projection) |
|
|
|
.setProjectionMatrix(projection) |
|
|
|
.bindDiffuseTexture(diffuseTexture) |
|
|
|
.bindDiffuseTexture(diffuseTexture) |
|
|
|
|