UpdateTransforms method

void UpdateTransforms(
  1. UniformGroup transforms
)

Implementation

void UpdateTransforms(UniformGroup transforms) {
  // TODO: computing the normal matrix like this is wrong
  _normMatrix.copyNormalMatrix(_modelMatrix);
  transforms.ForceUniform(uTransformationMatrix, transform);
  transforms.ForceUniform(uModelMatrix, _modelMatrix);
  transforms.ForceUniform(uNormalMatrix, _normMatrix);
}