Skip to content

Commit

Permalink
Switched default triangle winding to CW to mimic unity
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsakharov committed Apr 1, 2024
1 parent d930971 commit 3fea63a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Prowl.Editor/Assets/Importers/ModelImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ModelImporter : ScriptedImporter
public bool CullEmpty = false;
public bool OptimizeGraph = false;
public bool OptimizeMeshes = false;
public bool FlipWindingOrder = false;
public bool FlipWindingOrder = true;
public bool WeldVertices = false;
public bool InvertNormals = false;
public bool GlobalScale = false;
Expand Down
2 changes: 1 addition & 1 deletion Prowl.Runtime/Graphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static void StartFrame()
ActiveFaceCull.Stack.Clear();
ActiveFaceCull.SetDefault();

GL.FrontFace(FrontFaceDirection.Ccw); // Front face are defined counter clockwise (default)
GL.FrontFace(FrontFaceDirection.CW); // Front face are defined clockwise (default)

Clear();
Viewport(Window.InternalWindow.FramebufferSize.X, Window.InternalWindow.FramebufferSize.Y);
Expand Down

0 comments on commit 3fea63a

Please sign in to comment.