// Token: 0x06000F1C RID: 3868 RVA: 0x00066CB4 File Offset: 0x000650B4 public static void arrow(Vector3 normal, Vector3 view) { GLUtility.line(Vector3.zero, normal); Vector3 a = normal * 0.75f; Vector3 b = Vector3.Cross(view, normal) * 0.1f; GLUtility.line(normal, a - b); GLUtility.line(normal, a + b); }
public static void arrow(Vector3 normal, Vector3 view) { GLUtility.line(Vector3.zero, normal); Vector3 vector = normal * 0.75f; Vector3 vector2 = Vector3.Cross(view, normal) * 0.1f; GLUtility.line(normal, vector - vector2); GLUtility.line(normal, vector + vector2); }
// Token: 0x06000F1E RID: 3870 RVA: 0x00066D28 File Offset: 0x00065128 public static void boxWireframe(Vector3 center, Vector3 size) { Vector3 vector = size / 2f; GLUtility.line(center + new Vector3(-vector.x, -vector.y, -vector.z), center + new Vector3(vector.x, -vector.y, -vector.z)); GLUtility.line(center + new Vector3(-vector.x, -vector.y, -vector.z), center + new Vector3(-vector.x, -vector.y, vector.z)); GLUtility.line(center + new Vector3(-vector.x, -vector.y, vector.z), center + new Vector3(vector.x, -vector.y, vector.z)); GLUtility.line(center + new Vector3(vector.x, -vector.y, -vector.z), center + new Vector3(vector.x, -vector.y, vector.z)); GLUtility.line(center + new Vector3(-vector.x, -vector.y, -vector.z), center + new Vector3(-vector.x, vector.y, -vector.z)); GLUtility.line(center + new Vector3(vector.x, -vector.y, -vector.z), center + new Vector3(vector.x, vector.y, -vector.z)); GLUtility.line(center + new Vector3(-vector.x, -vector.y, vector.z), center + new Vector3(-vector.x, vector.y, vector.z)); GLUtility.line(center + new Vector3(vector.x, -vector.y, vector.z), center + new Vector3(vector.x, vector.y, vector.z)); GLUtility.line(center + new Vector3(-vector.x, vector.y, -vector.z), center + new Vector3(vector.x, vector.y, -vector.z)); GLUtility.line(center + new Vector3(-vector.x, vector.y, -vector.z), center + new Vector3(-vector.x, vector.y, vector.z)); GLUtility.line(center + new Vector3(-vector.x, vector.y, vector.z), center + new Vector3(vector.x, vector.y, vector.z)); GLUtility.line(center + new Vector3(vector.x, vector.y, -vector.z), center + new Vector3(vector.x, vector.y, vector.z)); }
// Token: 0x06000F1A RID: 3866 RVA: 0x00066AE8 File Offset: 0x00064EE8 public static void volumeHelper(bool isSelected, VolumeVisibilityGroup group) { if (group.isSurfaceVisible) { Shader.EnableKeyword("GL_SHADED"); switch (group.surfaceDepth) { case EGLVisibilityDepthMode.OVERLAP: GLUtility.TRI_FLAT_COLOR.SetPass(0); break; case EGLVisibilityDepthMode.CHECKER: GLUtility.TRI_DEPTH_CHECKERED_COLOR.SetPass(0); break; case EGLVisibilityDepthMode.CUTOFF: GLUtility.TRI_DEPTH_CUTOFF_COLOR.SetPass(0); break; case EGLVisibilityDepthMode.CHECKER_CUTOFF: GLUtility.TRI_CHECKERED_DEPTH_CUTOFF_COLOR.SetPass(0); break; } GL.Begin(4); Color c; if (isSelected) { c = Color.yellow; c.a = group.surfaceColor.a; } else { c = group.surfaceColor; } GL.Color(c); GLUtility.boxSolid(Vector3.zero, Vector3.one); GL.End(); Shader.DisableKeyword("GL_SHADED"); } if (group.isWireframeVisible) { switch (group.wireframeDepth) { case EGLVisibilityDepthMode.OVERLAP: GLUtility.LINE_FLAT_COLOR.SetPass(0); break; case EGLVisibilityDepthMode.CHECKER: GLUtility.LINE_DEPTH_CHECKERED_COLOR.SetPass(0); break; case EGLVisibilityDepthMode.CUTOFF: GLUtility.LINE_DEPTH_CUTOFF_COLOR.SetPass(0); break; case EGLVisibilityDepthMode.CHECKER_CUTOFF: GLUtility.LINE_CHECKERED_DEPTH_CUTOFF_COLOR.SetPass(0); break; } GL.Begin(1); Color c2; if (isSelected) { c2 = Color.yellow; c2.a = group.wireframeColor.a; } else { c2 = group.wireframeColor; } GL.Color(c2); GLUtility.boxWireframe(Vector3.zero, Vector3.one); GL.End(); } }