├── Example Materials.meta ├── Example Materials ├── Audio │ ├── SabreCSG_DisturbingBass.ogg │ ├── SabreCSG_DisturbingBass.ogg.meta │ ├── SabreCSG_ExtremeMachine02.wav │ ├── SabreCSG_ExtremeMachine02.wav.meta │ ├── SabreCSG_FluorescentExtremeHum.wav │ ├── SabreCSG_FluorescentExtremeHum.wav.meta │ ├── SabreCSG_LargeFan.wav │ ├── SabreCSG_LargeFan.wav.meta │ ├── SabreCSG_Ventilation04.wav │ ├── SabreCSG_Ventilation04.wav.meta │ ├── SabreCSG_WaterDrain.ogg │ └── SabreCSG_WaterDrain.ogg.meta ├── Textures.meta ├── Textures │ ├── Bricks.meta │ ├── Bricks │ │ ├── scsg_bricks_0_d.png │ │ ├── scsg_bricks_0_d.png.meta │ │ ├── scsg_bricks_0_d2.png │ │ ├── scsg_bricks_0_d2.png.meta │ │ ├── scsg_bricks_0_m.png │ │ ├── scsg_bricks_0_m.png.meta │ │ ├── scsg_bricks_0_n.png │ │ ├── scsg_bricks_0_n.png.meta │ │ ├── scsg_bricks_0_o.png │ │ ├── scsg_bricks_0_o.png.meta │ │ ├── scsg_bricks_1_d.png │ │ ├── scsg_bricks_1_d.png.meta │ │ ├── scsg_bricks_1_m.png │ │ ├── scsg_bricks_1_m.png.meta │ │ ├── scsg_bricks_1_n.png │ │ ├── scsg_bricks_1_n.png.meta │ │ ├── scsg_bricks_1_o.png │ │ └── scsg_bricks_1_o.png.meta │ ├── Concrete.meta │ ├── Concrete │ │ ├── scsg_concbare_0_d.png │ │ ├── scsg_concbare_0_d.png.meta │ │ ├── scsg_concbare_0_n.png │ │ ├── scsg_concbare_0_n.png.meta │ │ ├── scsg_concbare_0_s.png │ │ └── scsg_concbare_0_s.png.meta │ ├── Glass.meta │ ├── Glass │ │ ├── scsg_glass_0_d.png │ │ ├── scsg_glass_0_d.png.meta │ │ ├── scsg_glass_0_s.png │ │ ├── scsg_glass_0_s.png.meta │ │ ├── scsg_glass_1_d.png │ │ ├── scsg_glass_1_d.png.meta │ │ ├── scsg_glass_1_m.png │ │ └── scsg_glass_1_m.png.meta │ ├── Grass.meta │ ├── Grass │ │ ├── scsg_grass_0_d.png │ │ ├── scsg_grass_0_d.png.meta │ │ ├── scsg_grass_0_h.png │ │ ├── scsg_grass_0_h.png.meta │ │ ├── scsg_grass_0_n.png │ │ ├── scsg_grass_0_n.png.meta │ │ ├── scsg_grass_0_s.png │ │ └── scsg_grass_0_s.png.meta │ ├── Metal.meta │ ├── Metal │ │ ├── scsg_mebare_0_d.png │ │ ├── scsg_mebare_0_d.png.meta │ │ ├── scsg_mebare_0_m.png │ │ ├── scsg_mebare_0_m.png.meta │ │ ├── scsg_mebare_0_n.png │ │ ├── scsg_mebare_0_n.png.meta │ │ ├── scsg_metreadplate_0_d.png │ │ ├── scsg_metreadplate_0_d.png.meta │ │ ├── scsg_metreadplate_0_h.png │ │ ├── scsg_metreadplate_0_h.png.meta │ │ ├── scsg_metreadplate_0_m.png │ │ ├── scsg_metreadplate_0_m.png.meta │ │ ├── scsg_metreadplate_0_n.png │ │ └── scsg_metreadplate_0_n.png.meta │ ├── Planks.meta │ ├── Planks │ │ ├── scsg_planks_0_d.png │ │ ├── scsg_planks_0_d.png.meta │ │ ├── scsg_planks_0_m.png │ │ ├── scsg_planks_0_m.png.meta │ │ ├── scsg_planks_0_n.png │ │ ├── scsg_planks_0_n.png.meta │ │ ├── scsg_planks_1_d.png │ │ ├── scsg_planks_1_d.png.meta │ │ ├── scsg_planks_1_m.png │ │ ├── scsg_planks_1_m.png.meta │ │ ├── scsg_planks_1_n.png │ │ ├── scsg_planks_1_n.png.meta │ │ ├── scsg_planks_1_o.png │ │ └── scsg_planks_1_o.png.meta │ ├── Soil.meta │ ├── Soil │ │ ├── scsg_soilsand_0_d.png │ │ ├── scsg_soilsand_0_d.png.meta │ │ ├── scsg_soilsand_0_h.png │ │ ├── scsg_soilsand_0_h.png.meta │ │ ├── scsg_soilsand_0_m.png │ │ ├── scsg_soilsand_0_m.png.meta │ │ ├── scsg_soilsand_0_n.png │ │ └── scsg_soilsand_0_n.png.meta │ ├── Utility.meta │ ├── Utility │ │ ├── scsg_default_map_blue.png │ │ ├── scsg_default_map_blue.png.meta │ │ ├── scsg_default_map_cyan.png │ │ ├── scsg_default_map_cyan.png.meta │ │ ├── scsg_default_map_green.png │ │ ├── scsg_default_map_green.png.meta │ │ ├── scsg_default_map_grey.png │ │ ├── scsg_default_map_grey.png.meta │ │ ├── scsg_default_map_purple.png │ │ ├── scsg_default_map_purple.png.meta │ │ ├── scsg_default_map_red.png │ │ └── scsg_default_map_red.png.meta │ ├── Wood.meta │ ├── Wood │ │ ├── scsg_osb_0_d.png │ │ ├── scsg_osb_0_d.png.meta │ │ ├── scsg_osb_0_n.png │ │ ├── scsg_osb_0_n.png.meta │ │ ├── scsg_osb_0_s.png │ │ └── scsg_osb_0_s.png.meta │ ├── update.txt │ └── update.txt.meta ├── scsg_black.mat ├── scsg_black.mat.meta ├── scsg_bricks_0.mat ├── scsg_bricks_0.mat.meta ├── scsg_bricks_1.mat ├── scsg_bricks_1.mat.meta ├── scsg_concbare_0.mat ├── scsg_concbare_0.mat.meta ├── scsg_defaultmaterial_blue.mat ├── scsg_defaultmaterial_blue.mat.meta ├── scsg_defaultmaterial_cyan.mat ├── scsg_defaultmaterial_cyan.mat.meta ├── scsg_defaultmaterial_green.mat ├── scsg_defaultmaterial_green.mat.meta ├── scsg_defaultmaterial_grey.mat ├── scsg_defaultmaterial_grey.mat.meta ├── scsg_defaultmaterial_purple.mat ├── scsg_defaultmaterial_purple.mat.meta ├── scsg_defaultmaterial_red.mat ├── scsg_defaultmaterial_red.mat.meta ├── scsg_glass_0.mat ├── scsg_glass_0.mat.meta ├── scsg_glass_1.mat ├── scsg_glass_1.mat.meta ├── scsg_grass_0.mat ├── scsg_grass_0.mat.meta ├── scsg_mebare_0.mat ├── scsg_mebare_0.mat.meta ├── scsg_metreadplate_0.mat ├── scsg_metreadplate_0.mat.meta ├── scsg_osb_0.mat ├── scsg_osb_0.mat.meta ├── scsg_planks_0.mat ├── scsg_planks_0.mat.meta ├── scsg_planks_1.mat ├── scsg_planks_1.mat.meta ├── scsg_soilsand_0.mat └── scsg_soilsand_0.mat.meta ├── Gizmos.meta ├── Gizmos ├── Add.png ├── Add.png.meta ├── ButtonCapsule.png ├── ButtonCapsule.png.meta ├── ButtonCone.png ├── ButtonCone.png.meta ├── ButtonCube.png ├── ButtonCube.png.meta ├── ButtonCurvedStairs.png ├── ButtonCurvedStairs.png.meta ├── ButtonCylinder.png ├── ButtonCylinder.png.meta ├── ButtonIcoSphere.png ├── ButtonIcoSphere.png.meta ├── ButtonMore.png ├── ButtonMore.png.meta ├── ButtonPrism.png ├── ButtonPrism.png.meta ├── ButtonProjectedGrid.png ├── ButtonProjectedGrid.png.meta ├── ButtonShapeEditor.png ├── ButtonShapeEditor.png.meta ├── ButtonSphere.png ├── ButtonSphere.png.meta ├── ButtonStairs.png ├── ButtonStairs.png.meta ├── CircleGizmo8x8.png ├── CircleGizmo8x8.png.meta ├── CircleGizmoSelected8x8.png ├── CircleGizmoSelected8x8.png.meta ├── Collision.png ├── Collision.png.meta ├── DialogOverlay.png ├── DialogOverlay.png.meta ├── DialogOverlay75.png ├── DialogOverlay75.png.meta ├── DialogOverlay75@2x.png ├── DialogOverlay75@2x.png.meta ├── DialogOverlayFull.png ├── DialogOverlayFull.png.meta ├── Group.png ├── Group.png.meta ├── GroupHeader.png ├── GroupHeader.png.meta ├── GroupHeader@2x.png ├── GroupHeader@2x.png.meta ├── GroupHeaderButtonClose.png ├── GroupHeaderButtonClose.png.meta ├── GroupHeaderButtonHelp.png ├── GroupHeaderButtonHelp.png.meta ├── HelpIcon.png ├── HelpIcon.png.meta ├── ImporterBackground.png ├── ImporterBackground.png.meta ├── ImporterQuake1.png ├── ImporterQuake1.png.meta ├── ImporterUnrealGold.png ├── ImporterUnrealGold.png.meta ├── ImporterValveMapFormat2006.png ├── ImporterValveMapFormat2006.png.meta ├── MouseRightClickHint.png ├── MouseRightClickHint.png.meta ├── NoCSG.png ├── NoCSG.png.meta ├── SabreCSG16.png ├── SabreCSG16.png.meta ├── ShapeEditorCreatePolygon.png ├── ShapeEditorCreatePolygon.png.meta ├── ShapeEditorDelete.png ├── ShapeEditorDelete.png.meta ├── ShapeEditorExtrudeBevel.png ├── ShapeEditorExtrudeBevel.png.meta ├── ShapeEditorExtrudePoint.png ├── ShapeEditorExtrudePoint.png.meta ├── ShapeEditorExtrudeRevolve.png ├── ShapeEditorExtrudeRevolve.png.meta ├── ShapeEditorExtrudeShape.png ├── ShapeEditorExtrudeShape.png.meta ├── ShapeEditorFlipHorizontally.png ├── ShapeEditorFlipHorizontally.png.meta ├── ShapeEditorFlipVertically.png ├── ShapeEditorFlipVertically.png.meta ├── ShapeEditorHome.png ├── ShapeEditorHome.png.meta ├── ShapeEditorNew.png ├── ShapeEditorNew.png.meta ├── ShapeEditorOpen.png ├── ShapeEditorOpen.png.meta ├── ShapeEditorRestore.png ├── ShapeEditorRestore.png.meta ├── ShapeEditorRotate90Left.png ├── ShapeEditorRotate90Left.png.meta ├── ShapeEditorRotate90Right.png ├── ShapeEditorRotate90Right.png.meta ├── ShapeEditorSave.png ├── ShapeEditorSave.png.meta ├── ShapeEditorSegmentBezier.png ├── ShapeEditorSegmentBezier.png.meta ├── ShapeEditorSegmentBezierDetail.png ├── ShapeEditorSegmentBezierDetail.png.meta ├── ShapeEditorSegmentExtrude.png ├── ShapeEditorSegmentExtrude.png.meta ├── ShapeEditorSegmentInsert.png ├── ShapeEditorSegmentInsert.png.meta ├── ShapeEditorSegmentLinear.png ├── ShapeEditorSegmentLinear.png.meta ├── ShapeEditorShapeCreate.png ├── ShapeEditorShapeCreate.png.meta ├── ShapeEditorShapeDuplicate.png ├── ShapeEditorShapeDuplicate.png.meta ├── ShapeEditorZoomIn.png ├── ShapeEditorZoomIn.png.meta ├── ShapeEditorZoomOut.png ├── ShapeEditorZoomOut.png.meta ├── SquareGizmo8x8.png ├── SquareGizmo8x8.png.meta ├── SquareGizmoSelected8x8.png ├── SquareGizmoSelected8x8.png.meta ├── Subtract.png ├── Subtract.png.meta ├── TextField.png ├── TextField.png.meta ├── TextField2.png ├── TextField2.png.meta ├── Volume.png ├── Volume.png.meta ├── VolumetricAudioGizmo.png └── VolumetricAudioGizmo.png.meta ├── Internal.meta ├── Internal ├── Excluded.png ├── Excluded.png.meta ├── Shaders.meta └── Shaders │ ├── BrushPreview.shader │ ├── BrushPreview.shader.meta │ ├── Grayscale-GUITexture.shader │ └── Grayscale-GUITexture.shader.meta ├── KeyMappings.asset ├── KeyMappings.asset.meta ├── LICENSE ├── LICENSE.meta ├── Materials.meta ├── Materials ├── Add.mat ├── Add.mat.meta ├── Collision.mat ├── Collision.mat.meta ├── NoCSG.mat ├── NoCSG.mat.meta ├── Subtract.mat ├── Subtract.mat.meta ├── Volume.mat ├── Volume.mat.meta ├── scsg_volume_physics.mat ├── scsg_volume_physics.mat.meta ├── scsg_volume_physics.png ├── scsg_volume_physics.png.meta ├── scsg_volume_trigger.mat ├── scsg_volume_trigger.mat.meta ├── scsg_volume_trigger.png ├── scsg_volume_trigger.png.meta ├── scsg_volumetric_audio_volume.mat ├── scsg_volumetric_audio_volume.mat.meta ├── scsg_volumetric_audio_volume.png └── scsg_volumetric_audio_volume.png.meta ├── QuickStartGuide.pdf ├── QuickStartGuide.pdf.meta ├── README.md ├── README.md.meta ├── Readme.pdf ├── Readme.pdf.meta ├── Resources.meta ├── Resources ├── Materials.meta └── Materials │ ├── Default_LitWithTint.mat │ ├── Default_LitWithTint.mat.meta │ ├── Default_Map.mat │ ├── Default_Map.mat.meta │ ├── Default_VertexColor.mat │ ├── Default_VertexColor.mat.meta │ ├── Default_VertexColorLit.mat │ ├── Default_VertexColorLit.mat.meta │ ├── default_base_map.png │ ├── default_base_map.png.meta │ ├── default_map.png │ ├── default_map.png.meta │ ├── default_map_2.png │ └── default_map_2.png.meta ├── Scripts.meta ├── Scripts ├── Brushes.meta ├── Brushes │ ├── CompoundBrush.cs │ ├── CompoundBrush.cs.meta │ ├── CompoundBrushes.meta │ ├── CompoundBrushes │ │ ├── CurvedStairBrush.cs │ │ ├── CurvedStairBrush.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── CurvedStairBrushInspector.cs │ │ │ ├── CurvedStairBrushInspector.cs.meta │ │ │ ├── HollowBoxBrushInspector.cs │ │ │ ├── HollowBoxBrushInspector.cs.meta │ │ │ ├── ShapeEditorBrushInspector.cs │ │ │ ├── ShapeEditorBrushInspector.cs.meta │ │ │ ├── ShapeEditorWindow.cs │ │ │ ├── ShapeEditorWindow.cs.meta │ │ │ ├── ShapeEditorWindowPopup.cs │ │ │ ├── ShapeEditorWindowPopup.cs.meta │ │ │ ├── StairBrushInspector.cs │ │ │ ├── StairBrushInspector.cs.meta │ │ │ ├── TrimBrushInspector.cs │ │ │ └── TrimBrushInspector.cs.meta │ │ ├── HollowBoxBrush.cs │ │ ├── HollowBoxBrush.cs.meta │ │ ├── ShapeEditor.meta │ │ ├── ShapeEditor │ │ │ ├── Bezier.cs │ │ │ ├── Bezier.cs.meta │ │ │ ├── Decomposition.meta │ │ │ ├── Decomposition │ │ │ │ ├── BayazitDecomposer.cs │ │ │ │ ├── BayazitDecomposer.cs.meta │ │ │ │ ├── LICENSE.txt │ │ │ │ ├── LICENSE.txt.meta │ │ │ │ ├── SeidelDecomposer.cs │ │ │ │ └── SeidelDecomposer.cs.meta │ │ │ ├── ISelectable.cs │ │ │ ├── ISelectable.cs.meta │ │ │ ├── Pivot.cs │ │ │ ├── Pivot.cs.meta │ │ │ ├── Project.cs │ │ │ ├── Project.cs.meta │ │ │ ├── Segment.cs │ │ │ ├── Segment.cs.meta │ │ │ ├── SegmentType.cs │ │ │ ├── SegmentType.cs.meta │ │ │ ├── Shape.cs │ │ │ ├── Shape.cs.meta │ │ │ ├── ShapeEditorBrush.cs │ │ │ └── ShapeEditorBrush.cs.meta │ │ ├── StairBrush.cs │ │ ├── StairBrush.cs.meta │ │ ├── TrimBrush.cs │ │ └── TrimBrush.cs.meta │ ├── GroupBrush.cs │ ├── GroupBrush.cs.meta │ ├── PrimitiveBrush.cs │ ├── PrimitiveBrush.cs.meta │ ├── Volumes.meta │ └── Volumes │ │ ├── AudioVolume.meta │ │ ├── AudioVolume │ │ ├── VolumetricAudioVolume.cs │ │ ├── VolumetricAudioVolume.cs.meta │ │ ├── VolumetricAudioVolumeComponent.cs │ │ └── VolumetricAudioVolumeComponent.cs.meta │ │ ├── PhysicsVolume.meta │ │ ├── PhysicsVolume │ │ ├── PhysicsVolume.cs │ │ ├── PhysicsVolume.cs.meta │ │ ├── PhysicsVolumeComponent.cs │ │ ├── PhysicsVolumeComponent.cs.meta │ │ ├── PhysicsVolumeForceMode.cs │ │ ├── PhysicsVolumeForceMode.cs.meta │ │ ├── PhysicsVolumeForceSpace.cs │ │ ├── PhysicsVolumeForceSpace.cs.meta │ │ ├── PhysicsVolumeGravityMode.cs │ │ └── PhysicsVolumeGravityMode.cs.meta │ │ ├── TriggerVolume.meta │ │ ├── TriggerVolume │ │ ├── TriggerVolume.cs │ │ ├── TriggerVolume.cs.meta │ │ ├── TriggerVolumeComponent.cs │ │ ├── TriggerVolumeComponent.cs.meta │ │ ├── TriggerVolumeEvent.cs │ │ ├── TriggerVolumeEvent.cs.meta │ │ ├── TriggerVolumeTriggerType.cs │ │ └── TriggerVolumeTriggerType.cs.meta │ │ ├── Volume.cs │ │ └── Volume.cs.meta ├── CSGModel.cs ├── CSGModel.cs.meta ├── CSGModelBase.cs ├── CSGModelBase.cs.meta ├── CSGModelRuntime.cs ├── CSGModelRuntime.cs.meta ├── CallbackEvents.cs ├── CallbackEvents.cs.meta ├── Compatibility.meta ├── Compatibility │ ├── Editor.meta │ ├── Editor │ │ ├── UnityEventDrawer.cs │ │ └── UnityEventDrawer.cs.meta │ ├── Vector2Int.cs │ └── Vector2Int.cs.meta ├── Constants.cs ├── Constants.cs.meta ├── Core.meta ├── Core │ ├── BrushBase.cs │ ├── BrushBase.cs.meta │ ├── BuildEngine.meta │ ├── BuildEngine │ │ ├── BrushBuilder.cs │ │ ├── BrushBuilder.cs.meta │ │ ├── BrushCache.cs │ │ ├── BrushCache.cs.meta │ │ ├── CSGFactory.cs │ │ ├── CSGFactory.cs.meta │ │ ├── MeshGroupManager.cs │ │ ├── MeshGroupManager.cs.meta │ │ ├── Optimizer.cs │ │ ├── Optimizer.cs.meta │ │ ├── TriangulationNode.cs │ │ └── TriangulationNode.cs.meta │ ├── BuildMetrics.cs │ ├── BuildMetrics.cs.meta │ ├── CSG.meta │ ├── CSG │ │ ├── Brush.cs │ │ ├── Brush.cs.meta │ │ ├── BrushChunk.cs │ │ ├── BrushChunk.cs.meta │ │ ├── Edge.cs │ │ ├── Edge.cs.meta │ │ ├── Polygon.cs │ │ ├── Polygon.cs.meta │ │ ├── Vertex.cs │ │ ├── Vertex.cs.meta │ │ ├── VertexList.cs │ │ └── VertexList.cs.meta │ ├── CSGBuildContext.cs │ ├── CSGBuildContext.cs.meta │ ├── CSGBuildSettings.cs │ ├── CSGBuildSettings.cs.meta │ ├── Debugging.meta │ ├── Debugging │ │ ├── DebugTimer.cs │ │ └── DebugTimer.cs.meta │ ├── Dictionaries.meta │ ├── Dictionaries │ │ ├── MaterialMeshDictionary.cs │ │ └── MaterialMeshDictionary.cs.meta │ ├── IDeepCopyable.cs │ ├── IDeepCopyable.cs.meta │ ├── MeshExtensions.cs │ ├── MeshExtensions.cs.meta │ ├── PolygonEntry.cs │ ├── PolygonEntry.cs.meta │ ├── PolygonFactory.cs │ ├── PolygonFactory.cs.meta │ ├── SerializablePlane.cs │ └── SerializablePlane.cs.meta ├── CurrentSettings.cs ├── CurrentSettings.cs.meta ├── Editor.meta ├── Editor │ ├── AssetBrowserContextMenu.cs │ ├── AssetBrowserContextMenu.cs.meta │ ├── ExpandPropertiesDrawer.cs │ ├── ExpandPropertiesDrawer.cs.meta │ ├── Inspectors.meta │ ├── Inspectors │ │ ├── BrushBaseInspector.cs │ │ ├── BrushBaseInspector.cs.meta │ │ ├── BrushGroupInspector.cs │ │ ├── BrushGroupInspector.cs.meta │ │ ├── CSGBuildContextInspector.cs │ │ ├── CSGBuildContextInspector.cs.meta │ │ ├── CSGModelInspector.cs │ │ ├── CSGModelInspector.cs.meta │ │ ├── CompoundBrushInspector.cs │ │ ├── CompoundBrushInspector.cs.meta │ │ ├── KeyMappingsInspector.cs │ │ ├── KeyMappingsInspector.cs.meta │ │ ├── PrimitiveBrushInspector.cs │ │ └── PrimitiveBrushInspector.cs.meta │ ├── Utilities.meta │ └── Utilities │ │ ├── UtilityShortcuts.cs │ │ └── UtilityShortcuts.cs.meta ├── ExpandPropertiesAttribute.cs.cs ├── ExpandPropertiesAttribute.cs.cs.meta ├── Extensions.meta ├── Extensions │ ├── ColorHex.cs │ ├── ColorHex.cs.meta │ ├── EditorHelper.cs │ ├── EditorHelper.cs.meta │ ├── EnumHelper.cs │ ├── EnumHelper.cs.meta │ ├── Extensions.cs │ ├── Extensions.cs.meta │ ├── MathHelper.cs │ ├── MathHelper.cs.meta │ ├── Matrices.meta │ ├── Matrices │ │ ├── Matrix2x2.cs │ │ ├── Matrix2x2.cs.meta │ │ ├── Matrix3x2.cs │ │ └── Matrix3x2.cs.meta │ ├── StringHelper.cs │ ├── StringHelper.cs.meta │ ├── TransformData.cs │ ├── TransformData.cs.meta │ ├── TransformHelper.cs │ ├── TransformHelper.cs.meta │ ├── WorldTransformData.cs │ └── WorldTransformData.cs.meta ├── Geometry.meta ├── Geometry │ ├── AdjacencyFilters.cs │ ├── AdjacencyFilters.cs.meta │ ├── AdjacencyHelper.cs │ ├── AdjacencyHelper.cs.meta │ ├── BrushFactory.cs │ ├── BrushFactory.cs.meta │ ├── GeometryHelper.cs │ ├── GeometryHelper.cs.meta │ ├── MeshHelper.cs │ ├── MeshHelper.cs.meta │ ├── OBJFactory.cs │ ├── OBJFactory.cs.meta │ ├── OBJVertexList.cs │ ├── OBJVertexList.cs.meta │ ├── UVUtility.cs │ └── UVUtility.cs.meta ├── IPostBuildListener.cs ├── IPostBuildListener.cs.meta ├── Importers.meta ├── Importers │ ├── MaterialSearcher.cs │ ├── MaterialSearcher.cs.meta │ ├── Quake1.meta │ ├── Quake1 │ │ ├── MapBrush.cs │ │ ├── MapBrush.cs.meta │ │ ├── MapBrushSide.cs │ │ ├── MapBrushSide.cs.meta │ │ ├── MapEntity.cs │ │ ├── MapEntity.cs.meta │ │ ├── MapImporter.cs │ │ ├── MapImporter.cs.meta │ │ ├── MapPlane.cs │ │ ├── MapPlane.cs.meta │ │ ├── MapVector2.cs │ │ ├── MapVector2.cs.meta │ │ ├── MapVector3.cs │ │ ├── MapVector3.cs.meta │ │ ├── MapWorld.cs │ │ ├── MapWorld.cs.meta │ │ ├── MapWorldConverter.cs │ │ └── MapWorldConverter.cs.meta │ ├── UnrealGold.meta │ ├── UnrealGold │ │ ├── T3dActor.cs │ │ ├── T3dActor.cs.meta │ │ ├── T3dBrush.cs │ │ ├── T3dBrush.cs.meta │ │ ├── T3dBrushFlags.cs │ │ ├── T3dBrushFlags.cs.meta │ │ ├── T3dImporter.cs │ │ ├── T3dImporter.cs.meta │ │ ├── T3dMap.cs │ │ ├── T3dMap.cs.meta │ │ ├── T3dMapConverter.cs │ │ ├── T3dMapConverter.cs.meta │ │ ├── T3dPolygon.cs │ │ ├── T3dPolygon.cs.meta │ │ ├── T3dPolygonFlags.cs │ │ ├── T3dPolygonFlags.cs.meta │ │ ├── T3dRotator.cs │ │ ├── T3dRotator.cs.meta │ │ ├── T3dVector3.cs │ │ └── T3dVector3.cs.meta │ ├── ValveMapFormat2006.meta │ └── ValveMapFormat2006 │ │ ├── VmfAxis.cs │ │ ├── VmfAxis.cs.meta │ │ ├── VmfEntity.cs │ │ ├── VmfEntity.cs.meta │ │ ├── VmfImporter.cs │ │ ├── VmfImporter.cs.meta │ │ ├── VmfPlane.cs │ │ ├── VmfPlane.cs.meta │ │ ├── VmfSolid.cs │ │ ├── VmfSolid.cs.meta │ │ ├── VmfSolidSide.cs │ │ ├── VmfSolidSide.cs.meta │ │ ├── VmfVector3.cs │ │ ├── VmfVector3.cs.meta │ │ ├── VmfWorld.cs │ │ ├── VmfWorld.cs.meta │ │ ├── VmfWorldConverter.cs │ │ └── VmfWorldConverter.cs.meta ├── Input.meta ├── Input │ ├── EditorKeyMappings.cs │ ├── EditorKeyMappings.cs.meta │ ├── KeyMappings.cs │ └── KeyMappings.cs.meta ├── LinearFPSCam.cs ├── LinearFPSCam.cs.meta ├── Pair.cs ├── Pair.cs.meta ├── Tools.meta ├── Tools │ ├── ClipEditor.cs │ ├── ClipEditor.cs.meta │ ├── DrawEditor.cs │ ├── DrawEditor.cs.meta │ ├── EdgeEditor.cs │ ├── EdgeEditor.cs.meta │ ├── PaintEditor.cs │ ├── PaintEditor.cs.meta │ ├── ResizeEditor.cs │ ├── ResizeEditor.cs.meta │ ├── ResizeHandlePair.cs │ ├── ResizeHandlePair.cs.meta │ ├── SurfaceEditor.cs │ ├── SurfaceEditor.cs.meta │ ├── Tool.cs │ ├── Tool.cs.meta │ ├── ToolSettingsPopup.cs │ ├── ToolSettingsPopup.cs.meta │ ├── TransformModelEditor.cs │ ├── TransformModelEditor.cs.meta │ ├── Utilities.meta │ ├── Utilities │ │ ├── BrushUtility.cs │ │ ├── BrushUtility.cs.meta │ │ ├── ClipUtility.cs │ │ ├── ClipUtility.cs.meta │ │ ├── DrawUtility.cs │ │ ├── DrawUtility.cs.meta │ │ ├── EdgeUtility.cs │ │ ├── EdgeUtility.cs.meta │ │ ├── SurfaceUtility.cs │ │ ├── SurfaceUtility.cs.meta │ │ ├── Vertex Weld Ops.meta │ │ ├── Vertex Weld Ops │ │ │ ├── VertexWeldCentroidOperation.cs │ │ │ ├── VertexWeldCentroidOperation.cs.meta │ │ │ ├── VertexWeldOperation.cs │ │ │ ├── VertexWeldOperation.cs.meta │ │ │ ├── VertexWeldToleranceOperation.cs │ │ │ └── VertexWeldToleranceOperation.cs.meta │ │ ├── VertexUtility.cs │ │ └── VertexUtility.cs.meta │ ├── VertexEditor.cs │ └── VertexEditor.cs.meta ├── UI.meta ├── UI │ ├── CSGGrid.cs │ ├── CSGGrid.cs.meta │ ├── GridManager.cs │ ├── GridManager.cs.meta │ ├── MaterialPaletteWindow.cs │ ├── MaterialPaletteWindow.cs.meta │ ├── NamedVerticalScope.cs │ ├── NamedVerticalScope.cs.meta │ ├── PaletteWindow.cs │ ├── PaletteWindow.cs.meta │ ├── RadialMenu.cs │ ├── RadialMenu.cs.meta │ ├── SabreCSGPreferences.cs │ ├── SabreCSGPreferences.cs.meta │ ├── SabreCSGResources.cs │ ├── SabreCSGResources.cs.meta │ ├── SabreEditorGUI.cs │ ├── SabreEditorGUI.cs.meta │ ├── SabreGUIHelper.cs │ ├── SabreGUIHelper.cs.meta │ ├── SabreGUILayout.cs │ ├── SabreGUILayout.cs.meta │ ├── SabreGraphics.cs │ ├── SabreGraphics.cs.meta │ ├── SabreInput.cs │ ├── SabreInput.cs.meta │ ├── SabreMouse.cs │ ├── SabreMouse.cs.meta │ ├── SabreToolbarOverlay.cs │ ├── SabreToolbarOverlay.cs.meta │ ├── SabreToolsOverlay.cs │ ├── SabreToolsOverlay.cs.meta │ ├── Toolbar.cs │ ├── Toolbar.cs.meta │ ├── VertexColorWindow.cs │ └── VertexColorWindow.cs.meta ├── UpdateUtility.cs └── UpdateUtility.cs.meta ├── Shaders.meta └── Shaders ├── Diffuse-VertexColored.shader ├── Diffuse-VertexColored.shader.meta ├── Diffuse-VertexColoredLit.shader ├── Diffuse-VertexColoredLit.shader.meta ├── Handle.shader ├── Handle.shader.meta ├── Line.shader ├── Line.shader.meta ├── LineDashed.shader ├── LineDashed.shader.meta ├── LineDashedAlpha.shader ├── LineDashedAlpha.shader.meta ├── Plane.shader ├── Plane.shader.meta ├── Preview.shader ├── Preview.shader.meta ├── SeeExcluded.shader ├── SeeExcluded.shader.meta ├── ShapeEditorGrid.shader ├── ShapeEditorGrid.shader.meta ├── ShapeEditorLine.shader ├── ShapeEditorLine.shader.meta ├── Tri-Planar.shader ├── Tri-Planar.shader.meta ├── UINoAlpha.shader ├── UINoAlpha.shader.meta ├── VertexTinted.shader └── VertexTinted.shader.meta /Example Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06844674c66487c45bc7046e52ca067f 3 | folderAsset: yes 4 | timeCreated: 1522131882 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_DisturbingBass.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Audio/SabreCSG_DisturbingBass.ogg -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_DisturbingBass.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92d9ec3b562610344bc91cbfdac7f202 3 | timeCreated: 1536143347 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_ExtremeMachine02.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Audio/SabreCSG_ExtremeMachine02.wav -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_ExtremeMachine02.wav.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdae509eccec1c340926d7ee021dc8aa 3 | timeCreated: 1536188433 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_FluorescentExtremeHum.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Audio/SabreCSG_FluorescentExtremeHum.wav -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_FluorescentExtremeHum.wav.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 100a4cf50200a65468abbbe2f90eac73 3 | timeCreated: 1536139172 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_LargeFan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Audio/SabreCSG_LargeFan.wav -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_LargeFan.wav.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b40bbbc7b312f343bc704c327faec87 3 | timeCreated: 1536175856 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_Ventilation04.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Audio/SabreCSG_Ventilation04.wav -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_Ventilation04.wav.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 186be473c38159a448615db6ac7d56e9 3 | timeCreated: 1536168177 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_WaterDrain.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Audio/SabreCSG_WaterDrain.ogg -------------------------------------------------------------------------------- /Example Materials/Audio/SabreCSG_WaterDrain.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d48a9c90ce54ea14b8189a69fae9ea24 3 | timeCreated: 1536151879 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Example Materials/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a195aa9d73972cb46a98d11c04e92462 3 | folderAsset: yes 4 | timeCreated: 1522286777 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b50206ecf728c74dbaec812022d1628 3 | folderAsset: yes 4 | timeCreated: 1528532032 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_0_d2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_0_d2.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_0_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_0_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_0_o.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_0_o.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_1_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_1_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_1_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_1_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_1_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_1_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Bricks/scsg_bricks_1_o.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Bricks/scsg_bricks_1_o.png -------------------------------------------------------------------------------- /Example Materials/Textures/Concrete.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c16028ae5d783e84f96784ffbc85b015 3 | folderAsset: yes 4 | timeCreated: 1528544735 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Concrete/scsg_concbare_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Concrete/scsg_concbare_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Concrete/scsg_concbare_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Concrete/scsg_concbare_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Concrete/scsg_concbare_0_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Concrete/scsg_concbare_0_s.png -------------------------------------------------------------------------------- /Example Materials/Textures/Glass.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a6f960fada39484dbf519a05e3c46c3 3 | folderAsset: yes 4 | timeCreated: 1528533788 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Glass/scsg_glass_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Glass/scsg_glass_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Glass/scsg_glass_0_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Glass/scsg_glass_0_s.png -------------------------------------------------------------------------------- /Example Materials/Textures/Glass/scsg_glass_1_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Glass/scsg_glass_1_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Glass/scsg_glass_1_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Glass/scsg_glass_1_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Grass.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45b359a045a7ca94dab10b34cd1fea64 3 | folderAsset: yes 4 | timeCreated: 1528540288 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Grass/scsg_grass_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Grass/scsg_grass_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Grass/scsg_grass_0_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Grass/scsg_grass_0_h.png -------------------------------------------------------------------------------- /Example Materials/Textures/Grass/scsg_grass_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Grass/scsg_grass_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Grass/scsg_grass_0_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Grass/scsg_grass_0_s.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c1e10dba378b3e41bb81a5323d260a2 3 | folderAsset: yes 4 | timeCreated: 1528541868 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_mebare_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_mebare_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_mebare_0_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_mebare_0_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_mebare_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_mebare_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_metreadplate_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_metreadplate_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_metreadplate_0_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_metreadplate_0_h.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_metreadplate_0_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_metreadplate_0_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Metal/scsg_metreadplate_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Metal/scsg_metreadplate_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35179d642acb9a3468e49ec75fe561c6 3 | folderAsset: yes 4 | timeCreated: 1528532051 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_0_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_0_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_1_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_1_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_1_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_1_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_1_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_1_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Planks/scsg_planks_1_o.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Planks/scsg_planks_1_o.png -------------------------------------------------------------------------------- /Example Materials/Textures/Soil.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f951b6f1704eda4cadab0347b9f4ba6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Example Materials/Textures/Soil/scsg_soilsand_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Soil/scsg_soilsand_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Soil/scsg_soilsand_0_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Soil/scsg_soilsand_0_h.png -------------------------------------------------------------------------------- /Example Materials/Textures/Soil/scsg_soilsand_0_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Soil/scsg_soilsand_0_m.png -------------------------------------------------------------------------------- /Example Materials/Textures/Soil/scsg_soilsand_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Soil/scsg_soilsand_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Utility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f32ed04f416dc0849bc96756ab5ec4b4 3 | folderAsset: yes 4 | timeCreated: 1528532067 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Utility/scsg_default_map_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Utility/scsg_default_map_blue.png -------------------------------------------------------------------------------- /Example Materials/Textures/Utility/scsg_default_map_cyan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Utility/scsg_default_map_cyan.png -------------------------------------------------------------------------------- /Example Materials/Textures/Utility/scsg_default_map_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Utility/scsg_default_map_green.png -------------------------------------------------------------------------------- /Example Materials/Textures/Utility/scsg_default_map_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Utility/scsg_default_map_grey.png -------------------------------------------------------------------------------- /Example Materials/Textures/Utility/scsg_default_map_purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Utility/scsg_default_map_purple.png -------------------------------------------------------------------------------- /Example Materials/Textures/Utility/scsg_default_map_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Utility/scsg_default_map_red.png -------------------------------------------------------------------------------- /Example Materials/Textures/Wood.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 959e3d6dff60b364a8ae086c551145c5 3 | folderAsset: yes 4 | timeCreated: 1528539157 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example Materials/Textures/Wood/scsg_osb_0_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Wood/scsg_osb_0_d.png -------------------------------------------------------------------------------- /Example Materials/Textures/Wood/scsg_osb_0_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Wood/scsg_osb_0_n.png -------------------------------------------------------------------------------- /Example Materials/Textures/Wood/scsg_osb_0_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Example Materials/Textures/Wood/scsg_osb_0_s.png -------------------------------------------------------------------------------- /Example Materials/Textures/update.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c50319e406d5144385e584e08ab11ae 3 | timeCreated: 1522286804 4 | licenseType: Free 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Example Materials/scsg_black.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: scsg_black 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: {} 18 | m_Floats: {} 19 | m_Colors: 20 | data: 21 | first: 22 | name: _Color 23 | second: {r: 0, g: 0, b: 0, a: 1} 24 | -------------------------------------------------------------------------------- /Example Materials/scsg_black.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e8665057841d2941967f9c75c25b26a 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131906 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_bricks_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 391688459a53ab741b5d286d68f4236a 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131906 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_bricks_1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1cbea93bab7a05749bd23c4408d0792a 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131906 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_concbare_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3913a9987bf129f449b9aea2364584ae 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528544846 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_defaultmaterial_blue.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c11485e230b79f147b6b04cee2e77440 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131907 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_defaultmaterial_cyan.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02c0737bf00317d4084c9cd9982eb01f 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131906 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_defaultmaterial_green.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6f4383a7025c2648a357b8ebe4f86b7 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131907 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_defaultmaterial_grey.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3612dfc395be5b4bb7ebd52848dfaae 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131907 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_defaultmaterial_purple.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 355f39a1ac320f44095c58db21c4d6fd 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131906 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_defaultmaterial_red.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a27828de5a6f314a94962886ec3d659 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131907 6 | licenseType: Free 7 | NativeFormatImporter: 8 | mainObjectFileID: 0 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Example Materials/scsg_glass_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44117e50618dda44695c9d0b519fce98 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528533797 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_glass_1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd48af89bad145f42a5435464299f373 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528534280 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_grass_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f48d61d06f6395469c9a51431b9b760 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528540313 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_mebare_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a817f471166507340b24ab3333f70a58 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528545459 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_metreadplate_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a30577de9e884c44b5d755b5388d471 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528541879 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_osb_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb0ace6ce9bc68440b188c0545c53b1f 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528539176 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_planks_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec0b7a7f114fcfc4cac3fcb906d7edb2 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131907 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_planks_1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 693f824b522c16046a69225b62f978cc 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1522131907 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Example Materials/scsg_soilsand_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b161333b4708c8c43b340407eedd0773 3 | labels: 4 | - SabreCSG 5 | timeCreated: 1528531337 6 | licenseType: Free 7 | NativeFormatImporter: 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Gizmos.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1653e10cdd01d4fcca32a71c06fde291 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Gizmos/Add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/Add.png -------------------------------------------------------------------------------- /Gizmos/ButtonCapsule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonCapsule.png -------------------------------------------------------------------------------- /Gizmos/ButtonCone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonCone.png -------------------------------------------------------------------------------- /Gizmos/ButtonCube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonCube.png -------------------------------------------------------------------------------- /Gizmos/ButtonCurvedStairs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonCurvedStairs.png -------------------------------------------------------------------------------- /Gizmos/ButtonCylinder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonCylinder.png -------------------------------------------------------------------------------- /Gizmos/ButtonIcoSphere.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonIcoSphere.png -------------------------------------------------------------------------------- /Gizmos/ButtonMore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonMore.png -------------------------------------------------------------------------------- /Gizmos/ButtonMore.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5471abeb8f23465886bbb7bc532337c 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 7 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -100 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | allowsAlphaSplitting: 0 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 2 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | outline: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Gizmos/ButtonPrism.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonPrism.png -------------------------------------------------------------------------------- /Gizmos/ButtonProjectedGrid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonProjectedGrid.png -------------------------------------------------------------------------------- /Gizmos/ButtonShapeEditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonShapeEditor.png -------------------------------------------------------------------------------- /Gizmos/ButtonSphere.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonSphere.png -------------------------------------------------------------------------------- /Gizmos/ButtonStairs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ButtonStairs.png -------------------------------------------------------------------------------- /Gizmos/CircleGizmo8x8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/CircleGizmo8x8.png -------------------------------------------------------------------------------- /Gizmos/CircleGizmoSelected8x8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/CircleGizmoSelected8x8.png -------------------------------------------------------------------------------- /Gizmos/Collision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/Collision.png -------------------------------------------------------------------------------- /Gizmos/DialogOverlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/DialogOverlay.png -------------------------------------------------------------------------------- /Gizmos/DialogOverlay75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/DialogOverlay75.png -------------------------------------------------------------------------------- /Gizmos/DialogOverlay75@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/DialogOverlay75@2x.png -------------------------------------------------------------------------------- /Gizmos/DialogOverlayFull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/DialogOverlayFull.png -------------------------------------------------------------------------------- /Gizmos/Group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/Group.png -------------------------------------------------------------------------------- /Gizmos/GroupHeader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/GroupHeader.png -------------------------------------------------------------------------------- /Gizmos/GroupHeader@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/GroupHeader@2x.png -------------------------------------------------------------------------------- /Gizmos/GroupHeaderButtonClose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/GroupHeaderButtonClose.png -------------------------------------------------------------------------------- /Gizmos/GroupHeaderButtonHelp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/GroupHeaderButtonHelp.png -------------------------------------------------------------------------------- /Gizmos/HelpIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/HelpIcon.png -------------------------------------------------------------------------------- /Gizmos/ImporterBackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ImporterBackground.png -------------------------------------------------------------------------------- /Gizmos/ImporterQuake1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ImporterQuake1.png -------------------------------------------------------------------------------- /Gizmos/ImporterUnrealGold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ImporterUnrealGold.png -------------------------------------------------------------------------------- /Gizmos/ImporterValveMapFormat2006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ImporterValveMapFormat2006.png -------------------------------------------------------------------------------- /Gizmos/MouseRightClickHint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/MouseRightClickHint.png -------------------------------------------------------------------------------- /Gizmos/NoCSG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/NoCSG.png -------------------------------------------------------------------------------- /Gizmos/SabreCSG16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/SabreCSG16.png -------------------------------------------------------------------------------- /Gizmos/SabreCSG16.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96e5019047a79df4fbd09f640789c8d7 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 7 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: 0 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | allowsAlphaSplitting: 0 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 2 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | outline: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Gizmos/ShapeEditorCreatePolygon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorCreatePolygon.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorDelete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorDelete.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorExtrudeBevel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorExtrudeBevel.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorExtrudePoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorExtrudePoint.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorExtrudeRevolve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorExtrudeRevolve.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorExtrudeShape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorExtrudeShape.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorFlipHorizontally.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorFlipHorizontally.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorFlipVertically.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorFlipVertically.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorHome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorHome.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorNew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorNew.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorOpen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorOpen.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorRestore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorRestore.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorRotate90Left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorRotate90Left.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorRotate90Right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorRotate90Right.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorSave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorSave.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorSegmentBezier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorSegmentBezier.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorSegmentBezierDetail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorSegmentBezierDetail.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorSegmentExtrude.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorSegmentExtrude.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorSegmentInsert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorSegmentInsert.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorSegmentLinear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorSegmentLinear.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorShapeCreate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorShapeCreate.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorShapeDuplicate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorShapeDuplicate.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorZoomIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorZoomIn.png -------------------------------------------------------------------------------- /Gizmos/ShapeEditorZoomOut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/ShapeEditorZoomOut.png -------------------------------------------------------------------------------- /Gizmos/SquareGizmo8x8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/SquareGizmo8x8.png -------------------------------------------------------------------------------- /Gizmos/SquareGizmoSelected8x8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/SquareGizmoSelected8x8.png -------------------------------------------------------------------------------- /Gizmos/Subtract.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/Subtract.png -------------------------------------------------------------------------------- /Gizmos/TextField.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/TextField.png -------------------------------------------------------------------------------- /Gizmos/TextField2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/TextField2.png -------------------------------------------------------------------------------- /Gizmos/Volume.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/Volume.png -------------------------------------------------------------------------------- /Gizmos/VolumetricAudioGizmo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Gizmos/VolumetricAudioGizmo.png -------------------------------------------------------------------------------- /Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e1ddfe69a7e04f4a8c3588b38c44cfe 3 | folderAsset: yes 4 | timeCreated: 1428753050 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Internal/Excluded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Internal/Excluded.png -------------------------------------------------------------------------------- /Internal/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97f191bb56ac042d1bc788efe2321a04 3 | folderAsset: yes 4 | timeCreated: 1436186877 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Internal/Shaders/BrushPreview.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b36682a2a82e54bb28920dd1a712dc4d 3 | timeCreated: 1436186888 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Internal/Shaders/Grayscale-GUITexture.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/Grayscale-GUITexture" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Texture", any) = "" {} 6 | } 7 | 8 | SubShader 9 | { 10 | Tags { "ForceSupported" = "True" "RenderType"="Overlay" } 11 | Lighting Off 12 | Blend SrcAlpha OneMinusSrcAlpha 13 | Cull Off 14 | ZWrite Off 15 | ZTest Always 16 | 17 | Pass 18 | { 19 | CGPROGRAM 20 | #pragma vertex vert 21 | #pragma fragment frag 22 | 23 | #include "UnityCG.cginc" 24 | 25 | struct appdata_t 26 | { 27 | float4 vertex : POSITION; 28 | fixed4 color : COLOR; 29 | float2 texcoord : TEXCOORD0; 30 | }; 31 | 32 | struct v2f 33 | { 34 | float4 vertex : SV_POSITION; 35 | fixed4 color : COLOR; 36 | float2 texcoord : TEXCOORD0; 37 | }; 38 | 39 | sampler2D _MainTex; 40 | 41 | uniform float4 _MainTex_ST; 42 | 43 | v2f vert (appdata_t v) 44 | { 45 | v2f o; 46 | o.vertex = mul(UNITY_MATRIX_MVP, v.vertex); 47 | o.color = v.color; 48 | o.texcoord = TRANSFORM_TEX(v.texcoord,_MainTex); 49 | return o; 50 | } 51 | 52 | fixed4 frag (v2f i) : SV_Target 53 | { 54 | fixed4 col = tex2D(_MainTex, i.texcoord); 55 | col.rgb = dot(float3(0.222, 0.707, 0.071), col.rgb); 56 | return 2.0f * col * i.color; 57 | } 58 | ENDCG 59 | } 60 | } 61 | 62 | Fallback off 63 | } -------------------------------------------------------------------------------- /Internal/Shaders/Grayscale-GUITexture.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4df77ae1f6294d48869b9ab096d8b28 3 | timeCreated: 1467643568 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /KeyMappings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 1a9ed93f886034d1b9659a8799364e30, type: 3} 12 | m_Name: KeyMappings 13 | m_EditorClassIdentifier: 14 | ToggleMode: Space 15 | ToggleModeBack: '#Space' 16 | ActivateDrawMode: '#d' 17 | ActivateClipMode: '#c' 18 | ActivateResizeMode: '#r' 19 | ActivateFaceMode: '#f' 20 | ActivateVertexMode: '#v' 21 | TogglePosSnapping: / 22 | DecreasePosSnapping: ',' 23 | IncreasePosSnapping: . 24 | ToggleAngSnapping: '#/' 25 | DecreaseAngSnapping: '#,' 26 | IncreaseAngSnapping: '#.' 27 | ToggleBrushesHidden: h 28 | ChangeBrushToAdditive: a 29 | ChangeBrushToAdditive2: KeypadPlus 30 | ChangeBrushToSubtractive: s 31 | ChangeBrushToSubtractive2: KeypadMinus 32 | Group: g 33 | Ungroup: '#g' 34 | EnableRadialMenu: j 35 | ApplyClip: Return 36 | ApplySplit: '#Return' 37 | InsertEdgeLoop: l 38 | FlipPlane: r 39 | CopyMaterial: c 40 | CancelCurrentOperation: Escape 41 | Back: Backspace 42 | Delete: Delete 43 | -------------------------------------------------------------------------------- /KeyMappings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92f88097ac1f041d992cf45be120b2eb 3 | timeCreated: 1465309165 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Sabresaurus 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a5245ddeb9d42f418cb5b89de10ae44 3 | timeCreated: 1476457551 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8339bfe91830d415fb3278ae80df9d4b 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Materials/Add.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Materials/Add.mat -------------------------------------------------------------------------------- /Materials/Add.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7731bdfb2c79dff4b94a55d709075f47 3 | -------------------------------------------------------------------------------- /Materials/Collision.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Collision 10 | m_Shader: {fileID: 4800000, guid: b36682a2a82e54bb28920dd1a712dc4d, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: {} 18 | m_Floats: {} 19 | m_Colors: 20 | data: 21 | first: 22 | name: _Color 23 | second: {r: 0.39215687, g: 1, b: 0.39215687, a: 0.50980395} 24 | -------------------------------------------------------------------------------- /Materials/Collision.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c521ea577cb0b82468daae0d21107c48 3 | timeCreated: 1527500345 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Materials/NoCSG.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: NoCSG 10 | m_Shader: {fileID: 4800000, guid: b36682a2a82e54bb28920dd1a712dc4d, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: {} 18 | m_Floats: {} 19 | m_Colors: 20 | data: 21 | first: 22 | name: _Color 23 | second: {r: 0.72156864, g: 0.34117648, b: 1, a: 0.5921569} 24 | -------------------------------------------------------------------------------- /Materials/NoCSG.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93b16172184384c269f8fcb6a3140b15 3 | timeCreated: 1462293633 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Materials/Subtract.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Subtract 10 | m_Shader: {fileID: 4800000, guid: b36682a2a82e54bb28920dd1a712dc4d, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: {} 18 | m_Floats: {} 19 | m_Colors: 20 | data: 21 | first: 22 | name: _Color 23 | second: {r: 1, g: 0.6431373, b: 0, a: 0.6862745} 24 | -------------------------------------------------------------------------------- /Materials/Subtract.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9e61ed525f9ea94d999129feada1216 3 | -------------------------------------------------------------------------------- /Materials/Volume.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Volume 10 | m_Shader: {fileID: 4800000, guid: b36682a2a82e54bb28920dd1a712dc4d, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: {} 18 | m_Floats: {} 19 | m_Colors: 20 | data: 21 | first: 22 | name: _Color 23 | second: {r: 0.9411765, g: 0.9019608, b: 0.54901963, a: 1} 24 | -------------------------------------------------------------------------------- /Materials/Volume.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7722e52ff56119a48abbc9f90fb9ad3f 3 | timeCreated: 1528582390 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Materials/scsg_volume_physics.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2a2861cf86a2a94cb01e41ebff5c57a 3 | timeCreated: 1528799488 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Materials/scsg_volume_physics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Materials/scsg_volume_physics.png -------------------------------------------------------------------------------- /Materials/scsg_volume_trigger.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2a09e04545951545bea1edea9e49ce8 3 | timeCreated: 1528798992 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Materials/scsg_volume_trigger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Materials/scsg_volume_trigger.png -------------------------------------------------------------------------------- /Materials/scsg_volumetric_audio_volume.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c07758e9428f6d4bbe5eb6f8f484172 3 | timeCreated: 1536271940 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Materials/scsg_volumetric_audio_volume.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Materials/scsg_volumetric_audio_volume.png -------------------------------------------------------------------------------- /QuickStartGuide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/QuickStartGuide.pdf -------------------------------------------------------------------------------- /QuickStartGuide.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c227a7266d254b5f8cbdbda4537e37d 3 | timeCreated: 1445290546 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e29d803c23e78fd48aaaceec63e511e5 3 | timeCreated: 1476457551 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Readme.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Readme.pdf -------------------------------------------------------------------------------- /Readme.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5082f8966b654e84b67e974ba2a3e0f 3 | timeCreated: 1445266838 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd7a5eb5a7c70cd4b98154c7b5d141c6 3 | -------------------------------------------------------------------------------- /Resources/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 854cd74d5c64547eead6c16fc1dae478 3 | folderAsset: yes 4 | timeCreated: 1452176127 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Resources/Materials/Default_LitWithTint.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b616477dbb92d409191d2c3ac13ddd9b 3 | timeCreated: 1462977317 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Resources/Materials/Default_Map.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31f4273077e614c418ae54ecae8d21e4 3 | timeCreated: 1442060425 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Resources/Materials/Default_VertexColor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 314965cd4162d42349398f6a74bac709 3 | timeCreated: 1463580568 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Resources/Materials/Default_VertexColorLit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18db4db695c1d4534995289cc3c50ab7 3 | timeCreated: 1463580568 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Resources/Materials/default_base_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Resources/Materials/default_base_map.png -------------------------------------------------------------------------------- /Resources/Materials/default_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Resources/Materials/default_map.png -------------------------------------------------------------------------------- /Resources/Materials/default_map_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sabresaurus/SabreCSG/a5644b79e8f1e5985bfcb60aa26ba4ca89d06411/Resources/Materials/default_map_2.png -------------------------------------------------------------------------------- /Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 015acfaecab8946b681ce19ecaeadced 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Scripts/Brushes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65b4cebdb9d8b964ab086b803362b4a7 3 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c97039fac373379498a205c3e8d4464a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1608a150e5eff2649ae4d9f1c544b210 3 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/CurvedStairBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dea967b704e28fa4dae123d5defdcf5f 3 | timeCreated: 1516697447 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b691a5f00f2c4ff1834cf9f1ca56d1c 3 | folderAsset: yes 4 | timeCreated: 1467640435 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/CurvedStairBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abdbe05ba5d28404f8f5e17f001aec7e 3 | timeCreated: 1516710016 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/HollowBoxBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a76fa0614387084cb85b598c0744270 3 | timeCreated: 1528366657 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/ShapeEditorBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5500d8439cc5b1f4187cf52abb73b198 3 | timeCreated: 1518349407 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/ShapeEditorWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c0fbeef6b9e2204e82386cb1d79be70 3 | timeCreated: 1518349560 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/ShapeEditorWindowPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ddb01e64f7ae25459ed1eed5dcaa54b 3 | timeCreated: 1518466945 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/StairBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e92051a3b2864824b0f36c38cd13eac 3 | timeCreated: 1467640487 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/TrimBrushInspector.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace Sabresaurus.SabreCSG 9 | { 10 | [CanEditMultipleObjects] 11 | [CustomEditor(typeof(TrimBrush), true)] 12 | public class TrimBrushInspector : CompoundBrushInspector 13 | { 14 | SerializedProperty trimSizeProp; 15 | 16 | protected override void OnEnable () 17 | { 18 | base.OnEnable (); 19 | // Setup the SerializedProperties. 20 | trimSizeProp = serializedObject.FindProperty ("trimSize"); 21 | } 22 | 23 | public override void DoInspectorGUI() 24 | { 25 | using (new NamedVerticalScope("TrimBrush")) 26 | { 27 | EditorGUI.BeginChangeCheck(); 28 | EditorGUILayout.PropertyField(trimSizeProp); 29 | if (EditorGUI.EndChangeCheck()) 30 | { 31 | ApplyAndInvalidate(); 32 | } 33 | 34 | EditorGUILayout.Space(); 35 | } 36 | 37 | base.DoInspectorGUI(); 38 | } 39 | 40 | void ApplyAndInvalidate() 41 | { 42 | serializedObject.ApplyModifiedProperties(); 43 | System.Array.ForEach(BrushTargets, item => item.Invalidate(true)); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/Editor/TrimBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52521b88423da6845a18d918cd0f47ab 3 | timeCreated: 1520760969 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/HollowBoxBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eed65674ef786f142a6e53243f320513 3 | timeCreated: 1528366664 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08edc9f0a989a5144a3f432891c03146 3 | folderAsset: yes 4 | timeCreated: 1518525234 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Bezier.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using UnityEngine; 7 | 8 | namespace Sabresaurus.SabreCSG.ShapeEditor 9 | { 10 | /// 11 | /// Provides methods for calculating bezier splines. 12 | /// 13 | public static class Bezier 14 | { 15 | public static Vector3 GetPoint(Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t) 16 | { 17 | t = Mathf.Clamp01(t); 18 | float OneMinusT = 1f - t; 19 | return 20 | OneMinusT * OneMinusT * OneMinusT * p0 + 21 | 3f * OneMinusT * OneMinusT * t * p1 + 22 | 3f * OneMinusT * t * t * p2 + 23 | t * t * t * p3; 24 | } 25 | 26 | public static Vector3 GetPoint(Vector3 p0, Vector3 p1, Vector3 p2, float t) 27 | { 28 | t = Mathf.Clamp01(t); 29 | float oneMinusT = 1f - t; 30 | return 31 | oneMinusT * oneMinusT * p0 + 32 | 2f * oneMinusT * t * p1 + 33 | t * t * p2; 34 | } 35 | } 36 | } 37 | #endif -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Bezier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f1e5fcc11a76f94da792de3c72227be 3 | timeCreated: 1518600516 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Decomposition.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f2938e8b630b8a44a06f9eb16f24227 3 | folderAsset: yes 4 | timeCreated: 1519510303 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Decomposition/BayazitDecomposer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee2e9b732ab04a1469c948227be78f82 3 | timeCreated: 1519513045 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Decomposition/LICENSE.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 306075c9e32fca242ac89c2e202ffed8 3 | timeCreated: 1519514745 4 | licenseType: Free 5 | TextScriptImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Decomposition/SeidelDecomposer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f03a095ced143ac43b6b2006c1a46b97 3 | timeCreated: 1519510303 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/ISelectable.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using UnityEngine; 7 | 8 | namespace Sabresaurus.SabreCSG.ShapeEditor 9 | { 10 | /// 11 | /// Any object that can be selected in the 2D Shape Editor. 12 | /// 13 | public interface ISelectable 14 | { 15 | /// 16 | /// The position of the object on the grid. 17 | /// 18 | Vector2Int position { get; set; } 19 | } 20 | } 21 | #endif -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/ISelectable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70cb5c2a617abf4468fab28431d2f34b 3 | timeCreated: 1518525697 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Pivot.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using UnityEngine; 7 | 8 | namespace Sabresaurus.SabreCSG.ShapeEditor 9 | { 10 | /// 11 | /// A 2D Shape Editor Pivot. 12 | /// 13 | [Serializable] 14 | public class Pivot : ISelectable 15 | { 16 | /// 17 | /// The position of the pivot on the grid. 18 | /// 19 | [SerializeField] 20 | private Vector2Int _position; 21 | 22 | /// 23 | /// The position of the pivot on the grid. 24 | /// 25 | public Vector2Int position 26 | { 27 | get { return _position; } 28 | set { _position = value; } 29 | } 30 | } 31 | } 32 | #endif -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Pivot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f640692e4d19644a98030e6f3b80d46 3 | timeCreated: 1518525697 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Project.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5bc6cf2c1dd64f4ebe4919873d8b4f9 3 | timeCreated: 1518526293 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Segment.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec0c8e626e4e0fd4186cf4d03ddd8f20 3 | timeCreated: 1518525697 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/SegmentType.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Sabresaurus.SabreCSG.ShapeEditor 8 | { 9 | /// 10 | /// The type of 2D segment. 11 | /// 12 | public enum SegmentType 13 | { 14 | Linear, 15 | Bezier 16 | } 17 | } 18 | #endif -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/SegmentType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfd251183a758d349ac8b8be05380f9a 3 | timeCreated: 1518525697 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/Shape.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8219b73b931296c4ab17df36e5d02617 3 | timeCreated: 1518525697 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/ShapeEditor/ShapeEditorBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ef0e8065e29be54ab8a5e23473d498e 3 | timeCreated: 1518349407 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/StairBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07fa3a8de5c035843bafa9d0a61ed9db 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Brushes/CompoundBrushes/TrimBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94244af071e1c8941b9d5d54afe80deb 3 | timeCreated: 1520760969 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/GroupBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cff19230f770174fb80be4a4fd74062 3 | timeCreated: 1521045202 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/PrimitiveBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b5e50ce50836dc46b14ae1e12c1a1f9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60c6ee95e9ddc4148b8b0a0236e4b715 3 | folderAsset: yes 4 | timeCreated: 1528584004 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/AudioVolume.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf4d57c61c98fce40a3662b30685b87c 3 | folderAsset: yes 4 | timeCreated: 1575999558 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/AudioVolume/VolumetricAudioVolume.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07e72c732144dfc4083fc57bfac0b271 3 | timeCreated: 1576000221 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/AudioVolume/VolumetricAudioVolumeComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7402b991fcea7945ae1ccc43c4d0827 3 | timeCreated: 1576002714 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8ff45a5b8964b046bdeac2a9417a2c9 3 | folderAsset: yes 4 | timeCreated: 1528723867 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolume.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e14cbf429a81a8540a53f69c3803d2a4 3 | timeCreated: 1528723867 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b550fb7e5bb4424c95b8a18e0e1114c 3 | timeCreated: 1528723867 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeForceMode.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Sabresaurus.SabreCSG.Volumes 4 | { 5 | /// 6 | /// The force modes for the . 7 | /// 8 | public enum PhysicsVolumeForceMode 9 | { 10 | /// 11 | /// Don't do anything. 12 | /// 13 | None = 0, 14 | /// 15 | /// Add a continuous force to the rigidbody, using its mass. 16 | /// 17 | Force = 1, 18 | /// 19 | /// Add an instant force impulse to the rigidbody, using its mass. 20 | /// 21 | Impulse = 2, 22 | /// 23 | /// Add an instant velocity change to the rigidbody, ignoring its mass. 24 | /// 25 | VelocityChange = 3, 26 | /// 27 | /// Add a continuous acceleration to the rigidbody, ignoring its mass. 28 | /// 29 | Acceleration = 4 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeForceMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2b36b347843d0945bc7a376d8e4a9c4 3 | timeCreated: 1528726051 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeForceSpace.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Sabresaurus.SabreCSG.Volumes 4 | { 5 | /// 6 | /// The force space modes for the . 7 | /// 8 | public enum PhysicsVolumeForceSpace 9 | { 10 | /// 11 | /// Rotates physical forces relative to the volume brush. 12 | /// 13 | Relative = 0, 14 | 15 | /// 16 | /// The physical forces are applied in world space. 17 | /// 18 | World = 1 19 | } 20 | } -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeForceSpace.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e184aeb6cc8b0634c988ccd8082970d4 3 | timeCreated: 1529326691 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeGravityMode.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Sabresaurus.SabreCSG.Volumes 4 | { 5 | /// 6 | /// The gravity modes for the . 7 | /// 8 | public enum PhysicsVolumeGravityMode 9 | { 10 | /// 11 | /// Don't do anything. 12 | /// 13 | None = 0, 14 | /// 15 | /// Enable gravity on the rigidbody. 16 | /// 17 | Enable = 1, 18 | /// 19 | /// Disable gravity on the rigidbody. 20 | /// 21 | Disable = 2, 22 | /// 23 | /// Disable gravity on the rigidbody while inside the volume, enable it on exit. 24 | /// 25 | ZeroGravity = 3, 26 | /// 27 | /// Disable gravity on the rigidbody while inside the volume, restore the original gravity settings on exit. 28 | /// 29 | ZeroGravityRestore = 4 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/PhysicsVolume/PhysicsVolumeGravityMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da2283e0ac6c6dd4a9c8e035e3a0e4b1 3 | timeCreated: 1528809026 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5efb8be9c19deb42b757217161dc369 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume/TriggerVolume.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 726fd47c6b33553448d7d01f2fc93703 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume/TriggerVolumeComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3e265623b93290448278d14b10f1388 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume/TriggerVolumeEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.Events; 2 | 3 | namespace Sabresaurus.SabreCSG.Volumes 4 | { 5 | /// 6 | /// The unity event for the . 7 | /// 8 | /// 9 | [System.Serializable] 10 | public class TriggerVolumeEvent : UnityEvent 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume/TriggerVolumeEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee870a15e056055469ae62cf0878f226 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume/TriggerVolumeTriggerType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Sabresaurus.SabreCSG.Volumes 4 | { 5 | /// 6 | /// The trigger types for the . 7 | /// 8 | [Serializable] 9 | public enum TriggerVolumeTriggerType 10 | { 11 | /// 12 | /// Uses unity events to trigger things in the scene. 13 | /// 14 | UnityEvent = 0 15 | }; 16 | } -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/TriggerVolume/TriggerVolumeTriggerType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4848777f5e2594544a1859c988a90f0b 3 | timeCreated: 1528731397 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Brushes/Volumes/Volume.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcc6b2f51abf491459662ef7cbee1028 3 | timeCreated: 1528583973 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/CSGModel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9dcd0cd5d35e134499ced2a56e3acf4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/CSGModelBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a007d32e906d452d84f397303650d4f 3 | timeCreated: 1452178111 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/CSGModelRuntime.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Sabresaurus.SabreCSG 4 | { 5 | [ExecuteInEditMode] 6 | public class CSGModelRuntime : MonoBehaviour 7 | { 8 | void Start() 9 | { 10 | // CSGModelRuntime is now obsolete, strip the component from old models that used it 11 | DestroyImmediate(this); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Scripts/CSGModelRuntime.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efe485d210a424c478e1ab14a306be2e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/CallbackEvents.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | 4 | namespace Sabresaurus.SabreCSG 5 | { 6 | public class PostProcessCSGBuildAttribute : Attribute 7 | { 8 | public PostProcessCSGBuildAttribute() 9 | { 10 | 11 | } 12 | } 13 | } 14 | #endif -------------------------------------------------------------------------------- /Scripts/CallbackEvents.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d363b68aff5c9472997d2ef65d8e039d 3 | timeCreated: 1447687764 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Compatibility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c869506319936e48871703f87ed0f83 3 | folderAsset: yes 4 | timeCreated: 1521408336 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Compatibility/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c95ca27d9f00a34892a9b9824c9b519 3 | folderAsset: yes 4 | timeCreated: 1528787041 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Compatibility/Editor/UnityEventDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36a674334511c7b4c8d978720cf5b485 3 | timeCreated: 1528787041 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Compatibility/Vector2Int.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fce035588f48edc48b5dcca89ead0105 3 | timeCreated: 1521408337 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Constants.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | 4 | namespace Sabresaurus.SabreCSG 5 | { 6 | /// 7 | /// Provides commonly used string constants. 8 | /// 9 | internal static class Constants 10 | { 11 | /// 12 | /// The game object volume component identifier. 13 | /// This is used for the hidden built volume game objects for volume brushes. 14 | /// 15 | public const string GameObjectVolumeComponentIdentifier = "SabreCSG: Volume Component (67173f4f-868c-4c70-ae40-335550c8354f)"; 16 | } 17 | } 18 | #endif -------------------------------------------------------------------------------- /Scripts/Constants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b29d9ecccfbc8fb4f8885d4db46b3b9b 3 | timeCreated: 1528659610 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54a4a51323664420e96843a727b4e110 3 | folderAsset: yes 4 | timeCreated: 1442058805 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Core/BrushBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5000d1a5115d74296bd7fa5c3a1fc846 3 | timeCreated: 1466692543 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5684de8a97dd42819c5f60d33cee512 3 | folderAsset: yes 4 | timeCreated: 1453992145 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine/BrushBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e4e20ebb7d694362913415699805b9e 3 | timeCreated: 1452693706 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine/BrushCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96b25598ca1a44262b95bcf2e4aeb3ed 3 | timeCreated: 1452780193 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine/CSGFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9322b841cfacc4281a41f2072f01c66c 3 | timeCreated: 1452693706 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine/MeshGroupManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c22e5b052dfc4bc1a8fd73dd02a932b 3 | timeCreated: 1452867565 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine/Optimizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15ffaecb3a2654e799877f57d67cc472 3 | timeCreated: 1471267868 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildEngine/TriangulationNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6bfbc9aaea234292bd942f525190597 3 | timeCreated: 1470834559 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/BuildMetrics.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using UnityEngine; 3 | using System.Collections; 4 | using System; 5 | 6 | namespace Sabresaurus.SabreCSG 7 | { 8 | [Serializable] 9 | public class BuildMetrics 10 | { 11 | public int TotalMeshes = 0; 12 | public int TotalVertices = 0; 13 | public int TotalTriangles = 0; 14 | public float BuildTime = 0; 15 | public string BuildMetaData = ""; 16 | } 17 | } 18 | #endif -------------------------------------------------------------------------------- /Scripts/Core/BuildMetrics.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a455f184d1d0f46f59799d71a3ea5401 3 | timeCreated: 1435936254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/CSG.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbc8ce788b9364a2f96175e42dc21fa6 3 | folderAsset: yes 4 | timeCreated: 1442058805 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Core/CSG/Brush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b0b2e149c920d44b8e3ab6d8a9832b9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Core/CSG/BrushChunk.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8ec267cb0f9649f2b93ad5c8d1e4911 3 | timeCreated: 1428752900 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/CSG/Edge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 868d2fac276b1684bbccc3d234f67ce0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Core/CSG/Polygon.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 412f118b2bd6448069018fd529c75995 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Core/CSG/Vertex.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 141840b0753df40c488c9628d63553cc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Core/CSG/VertexList.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | namespace Sabresaurus.SabreCSG 8 | { 9 | public class VertexList 10 | { 11 | List vertices = new List(); 12 | 13 | public List Vertices 14 | { 15 | get { return vertices; } 16 | } 17 | 18 | public void Clear() 19 | { 20 | vertices.Clear(); 21 | } 22 | 23 | /// 24 | /// This will find if the vertex is already contained and return its index, otherwise it adds it as new 25 | /// 26 | public int AddOrGet(Vertex vertex) 27 | { 28 | // Find if the vertex is already contained 29 | for (int i = 0; i < vertices.Count; i++) 30 | { 31 | if (vertices[i] == vertex) 32 | { 33 | return i; 34 | } 35 | } 36 | 37 | // None found, so add it and return the new index 38 | vertices.Add(vertex); 39 | return vertices.Count - 1; 40 | } 41 | 42 | public int Add(Vertex vertex) 43 | { 44 | // None found, so add it and return the new index 45 | vertices.Add(vertex); 46 | return vertices.Count - 1; 47 | } 48 | } 49 | } 50 | #endif -------------------------------------------------------------------------------- /Scripts/Core/CSG/VertexList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e3c3c44354790f4cb0fa57167f8d271 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Core/CSGBuildContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb86d77c673844ed195cf2620ab10fd4 3 | timeCreated: 1439236234 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/CSGBuildSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40f6d0d92f45b4dca993dab5bfe1089b 3 | timeCreated: 1442850934 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/Debugging.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c494a3eb4777d44529dc27e4fb7471ac 3 | folderAsset: yes 4 | timeCreated: 1432656053 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Core/Debugging/DebugTimer.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using UnityEngine; 3 | using System.Collections; 4 | using System; 5 | 6 | namespace Sabresaurus.SabreCSG 7 | { 8 | internal static class DebugTimer 9 | { 10 | #if DEBUG_CSG 11 | static DateTime startTime; 12 | static DateTime lastEvent = DateTime.MinValue; 13 | #endif 14 | 15 | [System.Diagnostics.Conditional("DEBUG_CSG")] 16 | public static void StartTimer() 17 | { 18 | #if DEBUG_CSG 19 | startTime = DateTime.UtcNow; 20 | lastEvent = DateTime.UtcNow; 21 | Debug.Log("Started timer"); 22 | #endif 23 | } 24 | 25 | [System.Diagnostics.Conditional("DEBUG_CSG")] 26 | public static void LogEvent(string message) 27 | { 28 | #if DEBUG_CSG 29 | Debug.Log("Event " + (DateTime.UtcNow - startTime) + " " + (DateTime.UtcNow - lastEvent) + " - " + message); 30 | lastEvent = DateTime.UtcNow; 31 | #endif 32 | } 33 | } 34 | } 35 | #endif -------------------------------------------------------------------------------- /Scripts/Core/Debugging/DebugTimer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccac487fdb7a54f0ea8097378573fbf5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Core/Dictionaries.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a41d70404e2849eea320d5efdff536b 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Scripts/Core/Dictionaries/MaterialMeshDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2e4a217fa7eb4388923a3a13b0126cc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Core/IDeepCopyable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b97a850f60e0409da72863e93d07e45 3 | timeCreated: 1455210127 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/MeshExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64b584a751f8feb40a1277ec9db28e5e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Core/PolygonEntry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25243cca4eb654997989ea06b0827be7 3 | timeCreated: 1454686745 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/PolygonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75ee8ca020407464dbc7b489d2b1965b 3 | timeCreated: 1442861983 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Core/SerializablePlane.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Reflection; 3 | 4 | namespace Sabresaurus.SabreCSG 5 | { 6 | [System.Serializable] 7 | public struct SerializablePlane 8 | { 9 | [SerializeField] 10 | Vector3 normal; 11 | 12 | [SerializeField] 13 | float distance; 14 | 15 | public SerializablePlane (Plane unityPlane) 16 | { 17 | this.normal = unityPlane.normal; 18 | this.distance = unityPlane.distance; 19 | } 20 | 21 | public SerializablePlane (Vector3 normal, float distance) 22 | { 23 | this.normal = normal; 24 | this.distance = distance; 25 | } 26 | 27 | public Vector3 Normal 28 | { 29 | get 30 | { 31 | return normal; 32 | } 33 | set 34 | { 35 | normal = value; 36 | } 37 | } 38 | 39 | public float Distance 40 | { 41 | get 42 | { 43 | return distance; 44 | } 45 | set 46 | { 47 | distance = value; 48 | } 49 | } 50 | 51 | public Plane UnityPlane 52 | { 53 | get 54 | { 55 | // Use parameterless constructor then set the normal and distance as this avoids a sqrt 56 | Plane plane = new Plane(); 57 | plane.normal = normal; 58 | plane.distance = distance; 59 | return plane; 60 | } 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /Scripts/Core/SerializablePlane.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17f1870cb1f144544b24fc4646f46f3d 3 | timeCreated: 1454515209 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/CurrentSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1a459c29fb584752aa022cf01980275 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5929794f6c1ca94a915ab01ebd79a3d 3 | -------------------------------------------------------------------------------- /Scripts/Editor/AssetBrowserContextMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a5d7e1aa8392e5439f9d91fc7200b06 3 | timeCreated: 1527256810 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Editor/ExpandPropertiesDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 279d60dbdbf7f4f6e8f2e51b803ef8db 3 | timeCreated: 1464278716 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41a87afc31118854ca0c2de9c73b036a 3 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/BrushBaseInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbe69410bb77d4fbc8c527ccae35090c 3 | timeCreated: 1467300982 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/BrushGroupInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3b003598f23e3946a6b1a9bc44aa4c1 3 | timeCreated: 1521045582 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/CSGBuildContextInspector.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEditor; 4 | 5 | namespace Sabresaurus.SabreCSG 6 | { 7 | [CustomEditor(typeof(CSGBuildContext))] 8 | public class CSGBuildContextInspector : Editor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/CSGBuildContextInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83dbbc6b2cc674827b709456259d6dca 3 | timeCreated: 1439236344 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/CSGModelInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd918622d1d1f0943a7b2e7c1d975308 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/CompoundBrushInspector.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace Sabresaurus.SabreCSG 8 | { 9 | [CanEditMultipleObjects] 10 | [CustomEditor(typeof(CompoundBrush), true)] 11 | public class CompoundBrushInspector : BrushBaseInspector 12 | { 13 | // protected override void OnEnable () 14 | // { 15 | // base.OnEnable (); 16 | // } 17 | // 18 | public override void DoInspectorGUI() 19 | { 20 | using (new NamedVerticalScope("Compound")) 21 | { 22 | if(GUILayout.Button("Detach Brushes")) 23 | { 24 | for (int i = 0; i < BrushTargets.Length; i++) 25 | { 26 | Undo.DestroyObjectImmediate(BrushTargets[i]); 27 | } 28 | } 29 | } 30 | 31 | base.DoInspectorGUI(); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/CompoundBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68b2d6066fd78488fb4e386c96bed6ad 3 | timeCreated: 1467301419 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/KeyMappingsInspector.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEditor; 4 | using System.Collections.Generic; 5 | 6 | namespace Sabresaurus.SabreCSG 7 | { 8 | [CustomEditor(typeof(KeyMappings))] 9 | public class KeyMappingsInspector : Editor 10 | { 11 | public override void OnInspectorGUI() 12 | { 13 | GUILayout.Label("SabreCSG Key Mappings", SabreGUILayout.GetTitleStyle()); 14 | 15 | EditorGUILayout.BeginHorizontal(); 16 | GUILayout.Label("Uses Unity shortcut format"); 17 | GUIStyle style = new GUIStyle(GUI.skin.label); 18 | style.normal.textColor = Color.blue; 19 | style.fontStyle = FontStyle.Bold; 20 | if(GUILayout.Button("See format docs", style)) 21 | { 22 | Application.OpenURL("http://unity3d.com/support/documentation/ScriptReference/MenuItem.html"); 23 | } 24 | EditorGUILayout.EndHorizontal(); 25 | 26 | DrawDefaultInspector(); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/KeyMappingsInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20719b79cea414c4489a15888f260167 3 | timeCreated: 1465309017 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Editor/Inspectors/PrimitiveBrushInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06cf184481bb6b94aa9a4062c3834c94 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Editor/Utilities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f92a57bc8a57ec47a9299dcdec8dcd4 3 | -------------------------------------------------------------------------------- /Scripts/Editor/Utilities/UtilityShortcuts.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 842aae30801bd3340892f170b2779c44 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/ExpandPropertiesAttribute.cs.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace Sabresaurus.SabreCSG 5 | { 6 | public class ExpandPropertiesAttribute : PropertyAttribute 7 | { 8 | public ExpandPropertiesAttribute () 9 | { 10 | 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Scripts/ExpandPropertiesAttribute.cs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf0d28311be434aa6b7eed97e34f6d5c 3 | timeCreated: 1464278716 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e4751cf25d590f419ec0d261d94364e 3 | -------------------------------------------------------------------------------- /Scripts/Extensions/ColorHex.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | 4 | namespace Sabresaurus.SabreCSG 5 | { 6 | public struct ColorHex 7 | { 8 | byte r,g,b,a; 9 | 10 | public ColorHex(string hex) 11 | { 12 | r = 255; 13 | g = 255; 14 | b = 255; 15 | a = 255; 16 | if(hex.Length == 6) 17 | { 18 | r = Convert.ToByte(hex.Substring(0,2), 16); 19 | g = Convert.ToByte(hex.Substring(2,2), 16); 20 | b = Convert.ToByte(hex.Substring(4,2), 16); 21 | } 22 | } 23 | 24 | public static implicit operator Color32(ColorHex c) 25 | { 26 | return new Color32(c.r, c.g, c.b, c.a); 27 | } 28 | 29 | public static implicit operator Color(ColorHex c) 30 | { 31 | return new Color32(c.r, c.g, c.b, c.a); 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /Scripts/Extensions/ColorHex.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 803c27df6295443c481925d72bed3e2d 3 | timeCreated: 1463487883 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions/EditorHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd68aa9649c6543f48cb9f091ce993f6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Extensions/EnumHelper.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System; 4 | 5 | namespace Sabresaurus.SabreCSG 6 | { 7 | public static class EnumHelper 8 | { 9 | public static bool IsFlagSet(Enum candidate, Enum test) 10 | { 11 | if ((Convert.ToInt32(candidate) & Convert.ToInt32(test)) != 0) 12 | { 13 | return true; 14 | } 15 | else 16 | { 17 | return false; 18 | } 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /Scripts/Extensions/EnumHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ad3003ab95da4a17ae8f8476baca8c0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Extensions/Extensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38edc3be0623de944b80f55b4256440c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Scripts/Extensions/MathHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e515a0ac0a1ca7488a5fc6010d418a4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Extensions/Matrices.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64fc60caabb3a4d4e8b15e67b5410cf1 3 | folderAsset: yes 4 | timeCreated: 1452010795 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Extensions/Matrices/Matrix2x2.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | namespace Sabresaurus.SabreCSG 4 | { 5 | public struct Matrix2x2 6 | { 7 | public float m00; 8 | public float m10; 9 | public float m01; 10 | public float m11; 11 | 12 | public static Matrix2x2 Identity 13 | { 14 | get 15 | { 16 | return new Matrix2x2() 17 | { 18 | m00 = 1, 19 | m10 = 0, 20 | m01 = 0, 21 | m11 = 1, 22 | }; 23 | } 24 | } 25 | 26 | public static Matrix2x2 Zero 27 | { 28 | get 29 | { 30 | return new Matrix2x2() 31 | { 32 | m00 = 0, 33 | m10 = 0, 34 | m01 = 0, 35 | m11 = 0, 36 | }; 37 | } 38 | } 39 | 40 | public Matrix2x2 Inverse 41 | { 42 | get 43 | { 44 | float reciprocalDeterminant = 1f / Determinant; 45 | 46 | Matrix2x2 newMatrix = new Matrix2x2() 47 | { 48 | m00 = this.m11 * reciprocalDeterminant, 49 | m10 = -this.m10 * reciprocalDeterminant, 50 | m01 = -this.m01 * reciprocalDeterminant, 51 | m11 = this.m00 * reciprocalDeterminant, 52 | }; 53 | 54 | return newMatrix; 55 | } 56 | } 57 | 58 | public float Determinant 59 | { 60 | get 61 | { 62 | return (m00 * m11) - (m01 * m10); 63 | } 64 | } 65 | 66 | public override string ToString () 67 | { 68 | return m00+"\t"+ 69 | m10+"\t"+ 70 | m01+"\t"+ 71 | m11; 72 | } 73 | } 74 | } 75 | #endif -------------------------------------------------------------------------------- /Scripts/Extensions/Matrices/Matrix2x2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bead2c8f597f94b59a675e5ea1346888 3 | timeCreated: 1452010796 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions/Matrices/Matrix3x2.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using UnityEngine; 3 | 4 | namespace Sabresaurus.SabreCSG 5 | { 6 | public struct Matrix3x2 7 | { 8 | public float m00; 9 | public float m10; 10 | public float m01; 11 | public float m11; 12 | public float m02; 13 | public float m12; 14 | 15 | public Matrix3x2 Multiply(Matrix2x2 o) 16 | { 17 | return new Matrix3x2() 18 | { 19 | m00 = this.m00 * o.m00 + this.m10 * o.m01, 20 | m10 = this.m00 * o.m10 + this.m10 * o.m11, 21 | 22 | m01 = this.m01 * o.m00 + this.m11 * o.m01, 23 | m11 = this.m01 * o.m10 + this.m11 * o.m11, 24 | 25 | m02 = this.m02 * o.m00 + this.m12 * o.m01, 26 | m12 = this.m02 * o.m10 + this.m12 * o.m11, 27 | }; 28 | } 29 | 30 | public Vector2 Multiply(Vector3 o) 31 | { 32 | return new Vector2() 33 | { 34 | x = this.m00 * o.x + this.m01 * o.y + this.m02 * o.z, 35 | y = this.m10 * o.x + this.m11 * o.y + this.m12 * o.z, 36 | }; 37 | } 38 | 39 | public override string ToString () 40 | { 41 | return m00+"\t"+ 42 | m10+"\t"+ 43 | m01+"\t"+ 44 | m11+"\t"+ 45 | m02+"\t"+ 46 | m12; 47 | } 48 | } 49 | } 50 | #endif -------------------------------------------------------------------------------- /Scripts/Extensions/Matrices/Matrix3x2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14787f50847de464d8b568fe1456fbe3 3 | timeCreated: 1452012947 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions/StringHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55ac5e7ffd25a4809bca4278675e5021 3 | timeCreated: 1450190266 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions/TransformData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0498049d723694a4ca47f10d9e20ff5c 3 | timeCreated: 1454437030 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions/TransformHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2c17fed2e9fe495888294baeccd97fb 3 | timeCreated: 1450714020 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Extensions/WorldTransformData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e260d3f4cd7324e639a78efed2d67b49 3 | timeCreated: 1464884837 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c54c455a067445e59a48a82baa0b7e7 3 | folderAsset: yes 4 | timeCreated: 1432655863 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Geometry/AdjacencyFilters.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System; 6 | using System.Linq; 7 | 8 | namespace Sabresaurus.SabreCSG 9 | { 10 | public class AdjacencyFilters 11 | { 12 | public interface BaseFilter 13 | { 14 | bool IsPolygonAcceptable(Polygon polygonToTest); 15 | } 16 | 17 | public class MatchMaterial : BaseFilter 18 | { 19 | Material[] acceptableMaterials; 20 | 21 | public MatchMaterial(Material[] acceptableMaterials) 22 | { 23 | this.acceptableMaterials = acceptableMaterials; 24 | } 25 | 26 | public bool IsPolygonAcceptable(Polygon polygonToTest) 27 | { 28 | if(acceptableMaterials.Contains(polygonToTest.Material)) 29 | { 30 | return true; 31 | } 32 | else 33 | { 34 | return false; 35 | } 36 | } 37 | } 38 | } 39 | } 40 | #endif -------------------------------------------------------------------------------- /Scripts/Geometry/AdjacencyFilters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3be99c9e0b6e8134d95c5e340afc7e28 3 | timeCreated: 1470056593 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/AdjacencyHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1aa2b2c6c5b44c1290ad3f0b94b8dec 3 | timeCreated: 1449678456 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/BrushFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ca7c3c802b3b4388ac902403cef7226 3 | timeCreated: 1460647641 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/GeometryHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1f8272b8874c47f3a0d48ec6f39aef3 3 | timeCreated: 1430839059 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/MeshHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e70d367e7ccd490daeeedf7b786a502 3 | timeCreated: 1460648884 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/OBJFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68ed8240c9df14c0581d09004d6793b8 3 | timeCreated: 1441630278 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/OBJVertexList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b51f47a09368444c88f700aaa9d469e 3 | timeCreated: 1441633348 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Geometry/UVUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 587afcd55905647048d12902b0b21711 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/IPostBuildListener.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace Sabresaurus.SabreCSG 6 | { 7 | public interface IPostBuildListener 8 | { 9 | void OnBuildFinished(Transform meshGroupTransform); 10 | } 11 | } 12 | #endif -------------------------------------------------------------------------------- /Scripts/IPostBuildListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb2ce404f61274a25bc2fab8e6d9a15a 3 | timeCreated: 1456675486 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Importers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fab114c07a5e6449a4d3595f8831d94 3 | folderAsset: yes 4 | timeCreated: 1526493642 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Importers/MaterialSearcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1acbf10a759e5642b1519c9f7654505 3 | timeCreated: 1528227179 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8da2bb62eb70b8b479c0f712700b6eb7 3 | folderAsset: yes 4 | timeCreated: 1536519729 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapBrush.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System.Collections.Generic; 4 | 5 | namespace Sabresaurus.SabreCSG.Importers.Quake1 6 | { 7 | /// 8 | /// Represents a Quake 1 Brush. 9 | /// 10 | public class MapBrush 11 | { 12 | /// 13 | /// The sides of the brush. 14 | /// 15 | public List Sides = new List(); 16 | 17 | /// 18 | /// Returns a that represents this instance. 19 | /// 20 | /// A that represents this instance. 21 | public override string ToString() 22 | { 23 | return "Quake 1 Brush " + " (" + Sides.Count + " Sides)"; 24 | } 25 | } 26 | } 27 | 28 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 875f2aa1b9b229547ac6db5fc8ca4886 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapBrushSide.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | namespace Sabresaurus.SabreCSG.Importers.Quake1 4 | { 5 | /// 6 | /// Represents a Quake 1 Brush Side. 7 | /// 8 | public class MapBrushSide 9 | { 10 | public MapPlane Plane; 11 | public string Material; 12 | public MapVector2 Offset; 13 | public float Rotation; 14 | public MapVector2 Scale; 15 | 16 | /// 17 | /// Returns a that represents this instance. 18 | /// 19 | /// A that represents this instance. 20 | public override string ToString() 21 | { 22 | return "Quake 1 Brush Side " + " '" + Material + "' " + " " + Plane; 23 | } 24 | } 25 | } 26 | 27 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapBrushSide.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3bf8d86e9cd61f43bb49f1e36bb40fe 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapEntity.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System.Collections.Generic; 4 | 5 | namespace Sabresaurus.SabreCSG.Importers.Quake1 6 | { 7 | /// 8 | /// Represents a Quake 1 Entity. 9 | /// 10 | public class MapEntity 11 | { 12 | /// 13 | /// The class name of the entity. 14 | /// 15 | public string ClassName; 16 | 17 | /// 18 | /// The brushes in the entity if available. 19 | /// 20 | public List Brushes = new List(); 21 | 22 | /// 23 | /// Returns a that represents this instance. 24 | /// 25 | /// A that represents this instance. 26 | public override string ToString() 27 | { 28 | return "Quake 1 Entity " + ClassName + " (" + Brushes.Count + " Brushes)"; 29 | } 30 | } 31 | } 32 | 33 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapEntity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8723e4cb6ce7b154b88f0806972550d1 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d64d6d8eb17d5f408d9bb5f33a213d3 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapPlane.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95d2a96e61892434f81bb2843b0cb2b1 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapVector2.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | namespace Sabresaurus.SabreCSG.Importers.Quake1 4 | { 5 | /// 6 | /// Represents a Quake 1 Vector2. 7 | /// 8 | public class MapVector2 9 | { 10 | /// 11 | /// The x-coordinate of the vector. 12 | /// 13 | public float X; 14 | 15 | /// 16 | /// The y-coordinate of the vector. 17 | /// 18 | public float Y; 19 | 20 | /// 21 | /// Initializes a new instance of the class. 22 | /// 23 | /// The x-coordinate of the vector. 24 | /// The y-coordinate of the vector. 25 | public MapVector2(float x, float y) 26 | { 27 | X = x; 28 | Y = y; 29 | } 30 | 31 | /// 32 | /// Returns a that represents this instance. 33 | /// 34 | /// A that represents this instance. 35 | public override string ToString() 36 | { 37 | return "Quake 1 Vector3 (X=" + X + ", Y=" + Y + ")"; 38 | } 39 | } 40 | } 41 | 42 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapVector2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f475712a1d460d54c9c9ceba686b6d54 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapVector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60a0db048fd8f6a40b90218a5ac0f38a 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapWorld.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | 6 | namespace Sabresaurus.SabreCSG.Importers.Quake1 7 | { 8 | /// 9 | /// Represents a Quake 1 World. 10 | /// 11 | public class MapWorld 12 | { 13 | /// 14 | /// The brushes in the world (or null if no world). 15 | /// 16 | public List Brushes 17 | { 18 | get 19 | { 20 | return Entities.Where(e => e.ClassName == "worldspawn").Select(e => e.Brushes).FirstOrDefault(); 21 | } 22 | } 23 | 24 | /// 25 | /// The entities in the world. 26 | /// 27 | public List Entities = new List(); 28 | } 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapWorld.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fb0c1182f313cb4880ed1e3427de65a 3 | timeCreated: 1536519729 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/Quake1/MapWorldConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c689c44f121fa9409f067a4f203847c 3 | timeCreated: 1536520422 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5cc3a1a20a462143840efff01f3014f 3 | folderAsset: yes 4 | timeCreated: 1526493642 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dActor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc73adff2c2d6f84a8bf3fd59bdcb4a4 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dBrush.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b702694666fc5274b85d9ad9d52b4ae9 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dBrushFlags.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System; 4 | 5 | namespace Sabresaurus.SabreCSG.Importers.UnrealGold 6 | { 7 | /// 8 | /// Represents Unreal Editor 1's Brush Flags. 9 | /// 10 | [Flags] 11 | public enum T3dBrushFlags 12 | { 13 | /// 14 | /// Whether the brush is invisible. 15 | /// 16 | Invisible = 1, 17 | 18 | /// 19 | /// Whether the brush is using masked textures. 20 | /// 21 | Masked = 2, 22 | 23 | /// 24 | /// Whether the brush is using transparent rendering. 25 | /// 26 | Transparent = 4, 27 | 28 | /// 29 | /// Whether the brush doesn't have collision. 30 | /// 31 | NonSolid = 8, 32 | 33 | /// 34 | /// Whether the brush is essentially Sabre's NoCSG. 35 | /// 36 | SemiSolid = 32, 37 | 38 | /// 39 | /// Whether the brush is used to split off sections of the world. 40 | /// 41 | ZonePortal = 67108864, 42 | 43 | /// 44 | /// Whether the brush is using two-sided rendering. 45 | /// 46 | TwoSided = 256 47 | } 48 | } 49 | 50 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dBrushFlags.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4728320ffffa67543af985f827ba71ea 3 | timeCreated: 1526641126 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1aafd48970347c47b462b769accf798 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c876fb4e6d7c1c344bd7908b5f5ef6aa 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dMapConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7836a96483abfe4f8b126daa4a78feb 3 | timeCreated: 1526494056 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dPolygon.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c791253165b5ee4fa20c89f0dee741d 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dPolygonFlags.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System; 4 | 5 | namespace Sabresaurus.SabreCSG.Importers.UnrealGold 6 | { 7 | /// 8 | /// Represents Unreal Editor 1's Polygon Flags. 9 | /// 10 | [Flags] 11 | public enum T3dPolygonFlags 12 | { 13 | Invisible = 1, 14 | Masked = 2, 15 | Translucent = 4, 16 | Environment = 16, 17 | Modulated = 64, 18 | FakeBackdrop = 128, 19 | TwoSided = 256, 20 | UPan = 512, 21 | VPan = 1024, 22 | NoSmooth = 2048, 23 | SpecialPoly = 4096, 24 | SmallWavy = 8192, 25 | ForceViewZone = 16384, 26 | LowShadowDetail = 32768, 27 | AlphaBlend = 131072, 28 | DirtyShadows = 262144, 29 | BrightCorners = 524288, 30 | SpecialLit = 1048576, 31 | NoBoundsReject = 2097152, 32 | Unlit = 4194304, 33 | HighShadowDetail = 8388608, 34 | Portal = 67108864, 35 | Mirror = 134217728 36 | } 37 | } 38 | 39 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dPolygonFlags.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69f1fc077691870469b28a313995245b 3 | timeCreated: 1526643005 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dRotator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 438ca48a5be62a742903418131152af7 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/UnrealGold/T3dVector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15f8a3ab64c9548458a5cd8999712cc7 3 | timeCreated: 1526493642 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86201f70c70059241bc3c9a1e3bb6a85 3 | folderAsset: yes 4 | timeCreated: 1526731406 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfAxis.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3af06ab28da81b446ac4719047b0ec98 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfEntity.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace Sabresaurus.SabreCSG.Importers.ValveMapFormat2006 7 | { 8 | /// 9 | /// Represents a Hammer Entity. 10 | /// 11 | public class VmfEntity 12 | { 13 | public int Id = -1; 14 | 15 | /// 16 | /// The class name of the entity. 17 | /// 18 | public string ClassName; 19 | 20 | /// 21 | /// The solids in the entity if available. 22 | /// 23 | public List Solids = new List(); 24 | 25 | /// 26 | /// Returns a that represents this instance. 27 | /// 28 | /// A that represents this instance. 29 | public override string ToString() 30 | { 31 | return "VmfEntity " + ClassName + " " + Id + " (" + Solids.Count + " Solids)"; 32 | } 33 | } 34 | } 35 | 36 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfEntity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c00653aad765474f89fc04a2362bfdd 3 | timeCreated: 1526816208 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ff05bf1a50934f4f9104b8807c917b3 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfPlane.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 959e28fcebf49ea4ba3085c443fdc4e3 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfSolid.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace Sabresaurus.SabreCSG.Importers.ValveMapFormat2006 7 | { 8 | /// 9 | /// Represents a Hammer Solid. 10 | /// 11 | public class VmfSolid 12 | { 13 | public int Id = -1; 14 | 15 | /// 16 | /// The sides of the solid. 17 | /// 18 | public List Sides = new List(); 19 | 20 | /// 21 | /// Returns a that represents this instance. 22 | /// 23 | /// A that represents this instance. 24 | public override string ToString() 25 | { 26 | return "VMF Solid " + Id + " (" + Sides.Count + " Sides)"; 27 | } 28 | } 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfSolid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35fec656706945d4298ac72533745472 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfSolidSide.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | using System; 4 | 5 | namespace Sabresaurus.SabreCSG.Importers.ValveMapFormat2006 6 | { 7 | /// 8 | /// Represents a Hammer Solid Side. 9 | /// 10 | public class VmfSolidSide 11 | { 12 | public int Id = -1; 13 | public VmfPlane Plane; 14 | public string Material; 15 | public float Rotation; 16 | public VmfAxis UAxis; 17 | public VmfAxis VAxis; 18 | public int LightmapScale; 19 | public int SmoothingGroups; 20 | 21 | // HACK: 22 | public bool HasDisplacement = false; 23 | 24 | /// 25 | /// Returns a that represents this instance. 26 | /// 27 | /// A that represents this instance. 28 | public override string ToString() 29 | { 30 | return "VMF Solid Side " + Id + " '" + Material + "' " + " " + Plane; 31 | } 32 | } 33 | } 34 | 35 | #endif -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfSolidSide.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c18fd8aa8abdc5b47beba52c0b2ccf5c 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfVector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fa0ede7b47989748ad9ae3fd4c3c627 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfWorld.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0d9bbb3d70006f4d8ca1c266b0e8b15 3 | timeCreated: 1526731450 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Importers/ValveMapFormat2006/VmfWorldConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 219f26bf13ff0ec4681a6ad1755ded93 3 | timeCreated: 1526732201 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Input.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c53ab3246755498da6a92979c8abcb6 3 | folderAsset: yes 4 | timeCreated: 1426112254 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Input/EditorKeyMappings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fed883595a6834245b0f989eca427bab 3 | timeCreated: 1448387824 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Input/KeyMappings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a9ed93f886034d1b9659a8799364e30 3 | timeCreated: 1426112254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/LinearFPSCam.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1e55d2a312324cb9afb485388ebfa20 3 | timeCreated: 1454859267 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Pair.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | 3 | namespace Sabresaurus.SabreCSG 4 | { 5 | public struct Pair 6 | { 7 | T first; 8 | U second; 9 | 10 | public T First 11 | { 12 | get 13 | { 14 | return first; 15 | } 16 | } 17 | 18 | public U Second 19 | { 20 | get 21 | { 22 | return second; 23 | } 24 | } 25 | 26 | public Pair (T first, U second) 27 | { 28 | this.first = first; 29 | this.second = second; 30 | } 31 | } 32 | 33 | } 34 | #endif -------------------------------------------------------------------------------- /Scripts/Pair.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c6d9b4aae5c04ad283f3284b4c2bc70 3 | timeCreated: 1456844210 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 553d4ebedbcc4481f966af43579a43e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Scripts/Tools/ClipEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 465cce8e7f19b4c48a650f262c33cf2a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Tools/DrawEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac5d3193226f64a23b505a5151e78489 3 | timeCreated: 1456933692 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/EdgeEditor.cs: -------------------------------------------------------------------------------- 1 | // Deleted in 1.3 2 | -------------------------------------------------------------------------------- /Scripts/Tools/EdgeEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2cc07c2b11f545b391c06d27f5e5d07 3 | timeCreated: 1452021119 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/PaintEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 451dbb19614b84cd586a599fd4a30d19 3 | timeCreated: 1496075956 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/ResizeEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57ef4b18df89a495babd1a6853bb1a29 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Tools/ResizeHandlePair.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7da05f089e104fa6b0b212b200bbb0d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Tools/SurfaceEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7714c53259ffe47e6a887b5103bed493 3 | timeCreated: 1441128837 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Tool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d46a409a44e3c4d8e9eb9d5a1c5332a2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/Tools/ToolSettingsPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1256814fd98158b42b487d82f709b49b 3 | timeCreated: 1530648375 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/Tools/TransformModelEditor.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using System.Collections; 4 | using UnityEditor; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System; 8 | 9 | namespace Sabresaurus.SabreCSG 10 | { 11 | /// 12 | /// Dummy tool that does nothing 13 | /// 14 | public class TransformModelEditor : Tool 15 | { 16 | public override void ResetTool() 17 | { 18 | } 19 | 20 | public override void Deactivated() 21 | { 22 | base.Deactivated(); 23 | } 24 | } 25 | } 26 | #endif -------------------------------------------------------------------------------- /Scripts/Tools/TransformModelEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d167090f66495343b7db3c838bb7e1b 3 | timeCreated: 1469378074 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ae97b937a1f4407d8665ef540e6f9fd 3 | folderAsset: yes 4 | timeCreated: 1452008109 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/BrushUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f6121429039f4341973181ea1fa342a 3 | timeCreated: 1460641968 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/ClipUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8df964cd85b444b57941b688e8a475a3 3 | timeCreated: 1453812835 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/DrawUtility.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR || RUNTIME_CSG 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | namespace Sabresaurus.SabreCSG 7 | { 8 | /// 9 | /// Provides helper methods for dealing with brush drawing 10 | /// 11 | public static class DrawUtility 12 | { 13 | 14 | } 15 | } 16 | #endif -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/DrawUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebed94b1dbf11482d9f928c6c37e708b 3 | timeCreated: 1456937237 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/EdgeUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4a6a728b6c8140adaa9de489b0b2c03 3 | timeCreated: 1452008109 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/SurfaceUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b5f50c43bc4c42f7899bdbe68a5e1d8 3 | timeCreated: 1453220949 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/Vertex Weld Ops.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c54c044b187e74252b633961862f486d 3 | folderAsset: yes 4 | timeCreated: 1452007325 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/Vertex Weld Ops/VertexWeldCentroidOperation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e10e162575604d0e83bdeac127dfeb3 3 | timeCreated: 1452007325 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/Vertex Weld Ops/VertexWeldOperation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbd8afcd56eb44ccaa4697123c4bc0bf 3 | timeCreated: 1452007325 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/Vertex Weld Ops/VertexWeldToleranceOperation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47a74e503f3e04e9e859de0f34b99258 3 | timeCreated: 1452007325 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/Utilities/VertexUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a19152724aa0149cdaa26243650b5755 3 | timeCreated: 1452008109 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/Tools/VertexEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67f61e283bae54f1f9557cfd8250f6df 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f89b355c57bfa4436a3fe14c5344b462 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Scripts/UI/CSGGrid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58a3bce5f309a4310bb63a83c887e554 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/UI/GridManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f744c223c85394c7493e84e19083ee28 3 | timeCreated: 1451229514 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/MaterialPaletteWindow.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using UnityEditor; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Sabresaurus.SabreCSG 8 | { 9 | public class MaterialPaletteWindow : PaletteWindow 10 | { 11 | [MenuItem("Window/Material Palette")] 12 | static void CreateAndShow() 13 | { 14 | EditorWindow window = EditorWindow.GetWindow("Material Palette");//false, "Palette", true); 15 | 16 | window.minSize = new Vector2( 120, 120 ); 17 | 18 | window.Show(); 19 | } 20 | 21 | protected override string PlayerPrefKeyPrefix 22 | { 23 | get 24 | { 25 | return "MaterialPaletteSelection"; 26 | } 27 | } 28 | 29 | protected override System.Type TypeFilter 30 | { 31 | get 32 | { 33 | return typeof(Material); 34 | } 35 | } 36 | 37 | protected override void OnItemClick (Object selectedObject) 38 | { 39 | if(selectedObject is Material) 40 | { 41 | CSGModel activeModel = CSGModel.GetActiveCSGModel(); 42 | if(activeModel != null) 43 | { 44 | SurfaceEditor surfaceEditor = (SurfaceEditor)activeModel.GetTool(MainMode.Face); 45 | surfaceEditor.SetSelectionMaterial((Material)selectedObject); 46 | } 47 | } 48 | } 49 | } 50 | } 51 | #endif -------------------------------------------------------------------------------- /Scripts/UI/MaterialPaletteWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d6bb9dc1b1d74d649c9f67ada6dd91b 3 | timeCreated: 1474294914 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/NamedVerticalScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e295a5a171622b4b894304f39fbf358 3 | timeCreated: 1530649697 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/UI/PaletteWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6f113841360de341bc36861fa7d8e75 3 | timeCreated: 1474294914 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/RadialMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8de35b030352a4563bb0cb9fdc027690 3 | timeCreated: 1463418637 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/SabreCSGPreferences.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ccc418083aad4706a799b99ef6ab332 3 | timeCreated: 1452180070 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/SabreCSGResources.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14299673b25bf48db846751871f60423 3 | timeCreated: 1459785530 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/SabreEditorGUI.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | 3 | using UnityEditor; 4 | 5 | namespace Sabresaurus.SabreCSG 6 | { 7 | public class SabreEditorGUI 8 | { 9 | #if UNITY_5 10 | 11 | /// 12 | /// Scope for managing the indent level of the field labels. 13 | /// 14 | public class IndentLevelScope : System.IDisposable 15 | { 16 | public IndentLevelScope() 17 | { 18 | EditorGUI.indentLevel++; 19 | } 20 | 21 | public void Dispose() 22 | { 23 | EditorGUI.indentLevel--; 24 | } 25 | } 26 | 27 | #else 28 | 29 | /// 30 | /// Scope for managing the indent level of the field labels. 31 | /// 32 | public class IndentLevelScope : EditorGUI.IndentLevelScope { } 33 | 34 | #endif 35 | } 36 | } 37 | 38 | #endif -------------------------------------------------------------------------------- /Scripts/UI/SabreEditorGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78704bfb5cc5e67448aa830cbd12f223 3 | timeCreated: 1549040169 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/SabreGUIHelper.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | 3 | using UnityEngine; 4 | using System.Collections; 5 | using UnityEditor; 6 | using System; 7 | 8 | namespace Sabresaurus.SabreCSG 9 | { 10 | public static class SabreGUIHelper 11 | { 12 | public static bool AnyControlFocussed 13 | { 14 | get 15 | { 16 | string focusedControl = GUI.GetNameOfFocusedControl(); 17 | // A control is considered focused if there is a named control reporting as focused. 18 | // Note we disregard translation handles which report their active axis 19 | if(string.IsNullOrEmpty(focusedControl) 20 | || focusedControl == "xAxis" 21 | || focusedControl == "yAxis" 22 | || focusedControl == "zAxis") 23 | { 24 | return false; 25 | } 26 | else 27 | { 28 | return true; 29 | } 30 | } 31 | } 32 | } 33 | } 34 | #endif -------------------------------------------------------------------------------- /Scripts/UI/SabreGUIHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcf6049ae9e4e44d7a968d6929d858be 3 | timeCreated: 1453394610 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/SabreGUILayout.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5865cc84d527f490d832470023785fd3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/UI/SabreGraphics.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dd0f171b5bee475faa8018c4452314c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/UI/SabreInput.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using System.Collections; 4 | using UnityEditor; 5 | 6 | namespace Sabresaurus.SabreCSG 7 | { 8 | public static class SabreInput 9 | { 10 | public static bool AnyModifiersSet(Event e) 11 | { 12 | if(e.modifiers == EventModifiers.None 13 | || e.modifiers == EventModifiers.CapsLock) // Ignore CapsLock 14 | { 15 | return false; 16 | } 17 | else 18 | { 19 | return true; 20 | } 21 | } 22 | 23 | public static bool IsModifier(Event e, EventModifiers modifier) 24 | { 25 | EventModifiers modifiers1 = e.modifiers; 26 | EventModifiers modifiers2 = modifier; 27 | 28 | // Ignore capslock from either modifier 29 | modifiers1 &= (~EventModifiers.CapsLock); 30 | modifiers2 &= (~EventModifiers.CapsLock); 31 | 32 | if(modifiers1 == modifiers2) 33 | { 34 | return true; 35 | } 36 | else 37 | { 38 | return false; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | #endif -------------------------------------------------------------------------------- /Scripts/UI/SabreInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9318fd0d802be41f6ae8cfb65a820d4e 3 | timeCreated: 1454426894 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Scripts/UI/SabreMouse.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01fe9c5f4f46345458c2dda58b460ecc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/UI/SabreToolbarOverlay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 055d77af6bd524d4ca22f1bcf79de289 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Scripts/UI/SabreToolsOverlay.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR && UNITY_2021_2_OR_NEWER 2 | 3 | using UnityEditor; 4 | using UnityEditor.Overlays; 5 | using UnityEngine; 6 | 7 | namespace Sabresaurus.SabreCSG 8 | { 9 | [Overlay(typeof(SceneView), k_Id, "SabreCSG Tools")] 10 | public class SabreToolsOverlay : IMGUIOverlay 11 | { 12 | private const string k_Id = "sabrecsg-tools-overlay"; 13 | public static SabreToolsOverlay Instance; 14 | 15 | public static System.Action window1; 16 | public static System.Action window2; 17 | 18 | public override void OnCreated() 19 | { 20 | base.OnCreated(); 21 | 22 | Instance = this; 23 | } 24 | 25 | public override void OnGUI() 26 | { 27 | var model = CSGModel.GetActiveCSGModel(); 28 | if (model) 29 | { 30 | Toolbar.CSGModel = model; 31 | Toolbar.OnTopToolbarGUI(0); 32 | 33 | window1?.Invoke(); 34 | window2?.Invoke(); 35 | } 36 | } 37 | } 38 | } 39 | 40 | #endif -------------------------------------------------------------------------------- /Scripts/UI/SabreToolsOverlay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af8becb721ae13a418b3ec08ccf6d89a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Scripts/UI/Toolbar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1350cf79b2f1a4e0fb026eb8f3eef4b0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Scripts/UI/VertexColorWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdc540a10da6345d683d8d84e8f6ab7a 3 | timeCreated: 1540761842 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Scripts/UpdateUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ec1dc619c4ab4cdaa5e3cc08778b06c 3 | timeCreated: 1447174894 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c60246d45d4454da78026c30cd27ddba 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Shaders/Diffuse-VertexColored.shader: -------------------------------------------------------------------------------- 1 | Shader "SabreCSG/Diffuse (vertex colored) " 2 | { 3 | Properties 4 | { 5 | } 6 | SubShader 7 | { 8 | Tags { "RenderType"="Opaque" } 9 | LOD 200 10 | 11 | Pass 12 | { 13 | CGPROGRAM 14 | #pragma vertex vert 15 | #pragma fragment frag 16 | #include "UnityShaderVariables.cginc" 17 | 18 | // vertex shader input data 19 | struct appdata 20 | { 21 | float3 pos : POSITION; 22 | half4 color : COLOR; 23 | }; 24 | 25 | // vertex-to-fragment interpolators 26 | struct v2f 27 | { 28 | fixed4 color : COLOR0; 29 | float4 pos : SV_POSITION; 30 | }; 31 | 32 | // vertex shader 33 | v2f vert(appdata IN) 34 | { 35 | v2f o; 36 | half4 color = IN.color; 37 | o.color = color; 38 | // transform position 39 | o.pos = mul(UNITY_MATRIX_MVP, float4(IN.pos,1)); 40 | return o; 41 | } 42 | 43 | // fragment shader 44 | fixed4 frag(v2f IN) : SV_Target 45 | { 46 | fixed4 col; 47 | col = IN.color; 48 | return col; 49 | } 50 | ENDCG 51 | } 52 | } 53 | Fallback "VertexLit" 54 | } -------------------------------------------------------------------------------- /Shaders/Diffuse-VertexColored.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3766e6e9933194badba4b4a59b3796d8 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | -------------------------------------------------------------------------------- /Shaders/Diffuse-VertexColoredLit.shader: -------------------------------------------------------------------------------- 1 | Shader "SabreCSG/Diffuse (vertex colored, lit) " 2 | { 3 | Properties 4 | { 5 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 6 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 7 | _Metallic ("Metallic", Range(0,1)) = 0.0 8 | } 9 | SubShader 10 | { 11 | Tags { "RenderType"="Opaque" } 12 | LOD 200 13 | 14 | CGPROGRAM 15 | // Physically based Standard lighting model, and enable shadows on all light types 16 | #pragma surface surf Standard fullforwardshadows 17 | 18 | // Use shader model 3.0 target, to get nicer looking lighting 19 | #pragma target 3.0 20 | 21 | sampler2D _MainTex; 22 | 23 | struct Input 24 | { 25 | float2 uv_MainTex; 26 | fixed4 color : COLOR; 27 | }; 28 | 29 | half _Glossiness; 30 | half _Metallic; 31 | 32 | void surf (Input IN, inout SurfaceOutputStandard o) 33 | { 34 | // Albedo comes from a texture tinted by color 35 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex); 36 | o.Albedo = IN.color; 37 | // Metallic and smoothness come from slider variables 38 | o.Metallic = _Metallic; 39 | o.Smoothness = _Glossiness; 40 | o.Alpha = c.a; 41 | } 42 | ENDCG 43 | } 44 | FallBack "Diffuse" 45 | } -------------------------------------------------------------------------------- /Shaders/Diffuse-VertexColoredLit.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ee73278cb8a54014a8ca0d585b9d07e 3 | timeCreated: 1463156333 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/Handle.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8687b0f153371424a904f68c775f50af 3 | timeCreated: 1450183791 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/Line.shader: -------------------------------------------------------------------------------- 1 | Shader "SabreCSG/Line" 2 | { 3 | SubShader 4 | { 5 | Pass 6 | { 7 | ZWrite Off 8 | Cull Off 9 | Blend SrcAlpha OneMinusSrcAlpha 10 | CGPROGRAM 11 | #pragma vertex vert 12 | #pragma fragment frag 13 | #include "UnityShaderVariables.cginc" 14 | 15 | // uniforms 16 | 17 | // vertex shader input data 18 | struct appdata 19 | { 20 | float3 pos : POSITION; 21 | half4 color : COLOR; 22 | }; 23 | 24 | // vertex-to-fragment interpolators 25 | struct v2f 26 | { 27 | fixed4 color : COLOR0; 28 | float4 pos : SV_POSITION; 29 | }; 30 | 31 | // vertex shader 32 | v2f vert(appdata IN) 33 | { 34 | v2f o; 35 | half4 color = IN.color; 36 | half3 viewDir = 0.0; 37 | o.color = saturate(color); 38 | // compute texture coordinates 39 | // transform position 40 | o.pos = mul(UNITY_MATRIX_MVP, float4(IN.pos,1)); 41 | return o; 42 | } 43 | 44 | // fragment shader 45 | fixed4 frag(v2f IN) : SV_Target 46 | { 47 | fixed4 col; 48 | col = IN.color; 49 | return col; 50 | } 51 | ENDCG 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /Shaders/Line.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86df0202a470002428c3c61505f3a1aa 3 | timeCreated: 1443034028 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/LineDashed.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7454101b34cc64ec4a4217f6e73f3c23 3 | timeCreated: 1447078364 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/LineDashedAlpha.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4377456ffc4385c4d9371616a9d9ca0a 3 | timeCreated: 1470677176 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/Plane.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81d299dc73f07e5458001412d656ad25 3 | timeCreated: 1443034222 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/Preview.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d97365b633a2549f79b8b95dbb9f62f2 3 | timeCreated: 1457204021 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/SeeExcluded.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e384351a6272a41ea9ee1fdb98570e5e 3 | timeCreated: 1465488597 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/ShapeEditorGrid.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 992b57eba964b80459cb374598667eed 3 | timeCreated: 1518506671 4 | licenseType: Free 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Shaders/ShapeEditorLine.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a8254465f662514dbb99cab7353c776 3 | timeCreated: 1518474156 4 | licenseType: Free 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Shaders/Tri-Planar.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 369b87b955969495a900ed93cadfdefc 3 | timeCreated: 1462303020 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/UINoAlpha.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1698f9743a2f74bc492a50cfaa78c226 3 | timeCreated: 1456846238 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Shaders/VertexTinted.shader: -------------------------------------------------------------------------------- 1 | Shader "SabreCSG/Vertex Tinted" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 6 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 7 | _Metallic ("Metallic", Range(0,1)) = 0.0 8 | } 9 | SubShader 10 | { 11 | Tags { "RenderType"="Opaque" } 12 | LOD 200 13 | 14 | CGPROGRAM 15 | // Physically based Standard lighting model, and enable shadows on all light types 16 | #pragma surface surf Standard fullforwardshadows 17 | 18 | // Use shader model 3.0 target, to get nicer looking lighting 19 | #pragma target 3.0 20 | 21 | sampler2D _MainTex; 22 | 23 | struct Input 24 | { 25 | float2 uv_MainTex; 26 | fixed4 color : COLOR; 27 | }; 28 | 29 | half _Glossiness; 30 | half _Metallic; 31 | 32 | void surf (Input IN, inout SurfaceOutputStandard o) 33 | { 34 | // Albedo comes from a texture tinted by color 35 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex); 36 | o.Albedo = lerp(fixed3(1,1,1), IN.color, saturate((1-c.rgb)*2)); 37 | // Metallic and smoothness come from slider variables 38 | o.Metallic = _Metallic; 39 | o.Smoothness = _Glossiness; 40 | o.Alpha = c.a; 41 | } 42 | ENDCG 43 | } 44 | FallBack "Diffuse" 45 | } -------------------------------------------------------------------------------- /Shaders/VertexTinted.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a4216cd811c54cdfb663c156fe13881 3 | timeCreated: 1463156333 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | --------------------------------------------------------------------------------