152
181
LibMatrix::Stack4 model_view;
154
183
// Load the ModelViewProjectionMatrix uniform in the shader
158
186
model_view.rotate(mRotation, 0.0f, 1.0f, 0.0f);
159
187
model_view_proj *= model_view.getCurrent();
163
191
// Load the NormalMatrix uniform in the shader. The NormalMatrix is the
164
192
// inverse transpose of the model view matrix.
165
193
LibMatrix::mat4 normal_matrix(model_view.getCurrent());
166
194
normal_matrix.inverse().transpose();