Skip to content
Snippets Groups Projects
Commit 1fd950b4 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

call: fix rotation

Change-Id: I42ce49091d6aede177837a666c5efc1c58724a3a
parent b9b9e562
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ bool frameDisplayed = false;
projectionMatrix = [self getScalingMatrix: ratio axis: 'y'];
else
projectionMatrix = [self getScalingMatrix: 1/ratio axis: 'x'];
float radians = (-rotation * M_PI) / 180;
float radians = (rotation * M_PI) / 180;
simd::float4x4 rotationMatrix = [self getRotationMatrix:radians];
Uniforms bytes = Uniforms{projectionMatrix: projectionMatrix, rotationMatrix: rotationMatrix};
id<MTLCommandBuffer> commandBuffer = [commandQueue commandBuffer];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment