Skip to content

Instantly share code, notes, and snippets.

@iondune
Created April 20, 2016 04:31
Show Gist options
  • Select an option

  • Save iondune/4f5df43f3fede78396fa4e2da63c86af to your computer and use it in GitHub Desktop.

Select an option

Save iondune/4f5df43f3fede78396fa4e2da63c86af to your computer and use it in GitHub Desktop.
vec3f const Translation = vec3f(
(float) (Layer->ActiveRegion.Position.X * Layer->ScaleFactor * 0.1f - GlobalSystemOffset.X),
0.f,
(float) (Layer->ActiveRegion.Position.Y * Layer->ScaleFactor * 0.1f - GlobalSystemOffset.Y));
vec3f const Scale = vec3f(
(float) Layer->ScaleFactor * 0.1f,
0.1f,
(float) Layer->ScaleFactor * 0.1f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment