Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Scale camera with -1 on Y axis.
Needed to get proper result orientation.
  • Loading branch information
jesterKing committed Jun 17, 2021
1 parent e7ac267 commit 05b4fa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions csycles/Transform.cs
Expand Up @@ -81,7 +81,7 @@ public struct _Transform
default:
throw new IndexOutOfRangeException("Only indices [0..2] are acceptable");
}

}
}

Expand Down Expand Up @@ -180,7 +180,7 @@ public class Transform
/// </summary>
static public Transform RhinoToCyclesCam { get; } = new Transform(
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, -1.0f, 0.0f, 0.0f,
0.0f, 0.0f, -1.0f, 0.0f
);

Expand Down Expand Up @@ -312,7 +312,7 @@ public void SetMatrix(float[] m)
default:
throw new IndexOutOfRangeException("Only indices [0..2] are acceptable");
}

}
}

Expand Down

0 comments on commit 05b4fa3

Please sign in to comment.