Ver Fonte

Fixed cone rendering

Marko Pintera há 11 anos atrás
pai
commit
2274315e3b
2 ficheiros alterados com 5 adições e 4 exclusões
  1. 3 3
      BansheeEngine/Source/BsShapeMeshes3D.cpp
  2. 2 1
      SceneView.txt

+ 3 - 3
BansheeEngine/Source/BsShapeMeshes3D.cpp

@@ -649,9 +649,9 @@ namespace BansheeEngine
 
 		{
 			UINT32 i = numTriangles - 1;
-			outIndices[i * 3 + 0] = vertexOffset + topIdx;
-			outIndices[i * 3 + 1] = vertexOffset + 0;
-			outIndices[i * 3 + 2] = vertexOffset + i;
+			outIndices[i * 3 + 0] = curVertOffset + topIdx;
+			outIndices[i * 3 + 1] = curVertOffset + 0;
+			outIndices[i * 3 + 2] = curVertOffset + i;
 		}
 	}
 

+ 2 - 1
SceneView.txt

@@ -6,11 +6,12 @@
 
 REFACTOR material getParams* and related classes. Those params should update all gpu program params that share that variable, not just the first found
 Add a way to render GUI image without alpha
-Exception related to handle manager on shutdown
 Cannot pick gizmo icon
 Cone handle doesn't render properly
 Line slider collider intersection doesn't work properly
 Handles need to render in front of everything
+When handle is shown this extra line appears out of nowhere, even if I don't draw handles
+Line color doesn't show when rendering handles, it's always black
 
 Test gizmos
  - HOOK UP GIZMO SELECTION and test it