From 10793e698959c9258123be8e819d46b75f120895 Mon Sep 17 00:00:00 2001 From: mattatz Date: Sun, 6 Jan 2019 12:54:43 +0900 Subject: [PATCH 1/3] Fix a bug to check a back face in CPU voxelizer. --- Assets/RealTimeGPUBasedVoxelizer/Scripts/Voxel.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Assets/RealTimeGPUBasedVoxelizer/Scripts/Voxel.cs b/Assets/RealTimeGPUBasedVoxelizer/Scripts/Voxel.cs index 0bf2f5d..88e88bb 100644 --- a/Assets/RealTimeGPUBasedVoxelizer/Scripts/Voxel.cs +++ b/Assets/RealTimeGPUBasedVoxelizer/Scripts/Voxel.cs @@ -9,10 +9,11 @@ namespace Voxelizer { [StructLayout(LayoutKind.Sequential)] - public struct Voxel_t { - public Vector3 position; - public uint fill; - public uint front; + public struct Voxel_t + { + public Vector3 position; + public uint fill; + public uint front; public bool IsFrontFace() { @@ -21,14 +22,14 @@ public bool IsFrontFace() public bool IsBackFace() { - return fill> 0 && front> 0; + return fill> 0 && front < 1; } public bool IsEmpty() { return fill < 1; } - } + } } From 388ba5ca7f8e548ebb94fa1095eb6c339bd15d9c Mon Sep 17 00:00:00 2001 From: kaiware007 Date: 2019年3月24日 13:17:02 +0900 Subject: [PATCH 2/3] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f77a72d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Indie Visual Lab + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From c1e10b38320ff3d90fd2c6b5f276140edc6775a8 Mon Sep 17 00:00:00 2001 From: Bonsak Schiledrop Date: 2019年4月22日 19:03:53 +0200 Subject: [PATCH 3/3] MinAttribute is an ambigous reference Without explicitly referencing MinAttribute to either UnityEngine.PostProcessing.MinAttribute or UnityEngine.MinAttribute, unity will flag a compile error when starting playmode. ```'MinAttribute' is an ambiguous reference between 'UnityEngine.PostProcessing.MinAttribute' and 'UnityEngine.MinAttribute'``` --- .../PostProcessing/Editor/PropertyDrawers/MinDrawer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/CurlNoise/PostProcessing/Editor/PropertyDrawers/MinDrawer.cs b/Assets/CurlNoise/PostProcessing/Editor/PropertyDrawers/MinDrawer.cs index 59791f5..8a916fd 100644 --- a/Assets/CurlNoise/PostProcessing/Editor/PropertyDrawers/MinDrawer.cs +++ b/Assets/CurlNoise/PostProcessing/Editor/PropertyDrawers/MinDrawer.cs @@ -3,12 +3,12 @@ namespace UnityEditor.PostProcessing { - [CustomPropertyDrawer(typeof(MinAttribute))] + [CustomPropertyDrawer(typeof(UnityEngine.PostProcessing.MinAttribute))] sealed class MinDrawer : PropertyDrawer { public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { - MinAttribute attribute = (MinAttribute)base.attribute; + UnityEngine.PostProcessing.MinAttribute attribute = (UnityEngine.PostProcessing.MinAttribute)base.attribute; if (property.propertyType == SerializedPropertyType.Integer) {

AltStyle によって変換されたページ (->オリジナル) /