Commit 1fd950b4 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

call: fix rotation

Change-Id: I42ce49091d6aede177837a666c5efc1c58724a3a
parent b9b9e562
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment