├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── Assets ├── GradientOverlay.cs ├── GradientOverlay.cs.meta ├── GradientOverlay.shader ├── GradientOverlay.shader.meta ├── GradientQuads.cs ├── GradientQuads.cs.meta ├── Overlay.unity ├── Overlay.unity.meta ├── Swatch.unity └── Swatch.unity.meta ├── LICENSE ├── Packages ├── jp.keijiro.klak.cosinegradient │ ├── Editor.meta │ ├── Editor │ │ ├── CosineGradientGraphDrawer.cs │ │ ├── CosineGradientGraphDrawer.cs.meta │ │ ├── CosineGradientPropertyDrawer.cs │ │ ├── CosineGradientPropertyDrawer.cs.meta │ │ ├── Klak.Chromatics.CosineGradient.Editor.asmdef │ │ ├── Klak.Chromatics.CosineGradient.Editor.asmdef.meta │ │ ├── Preview.shader │ │ └── Preview.shader.meta │ ├── LICENSE │ ├── LICENSE.meta │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ │ ├── CosineGradient.cs │ │ ├── CosineGradient.cs.meta │ │ ├── CosineGradient.hlsl │ │ ├── CosineGradient.hlsl.meta │ │ ├── Klak.Chromatics.CosineGradient.Runtime.asmdef │ │ └── Klak.Chromatics.CosineGradient.Runtime.asmdef.meta │ ├── package.json │ └── package.json.meta ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | 3 | *.cs text eol=lf diff=csharp 4 | *.shader text eol=lf 5 | *.cginc text eol=lf 6 | *.hlsl text eol=lf 7 | *.compute text eol=lf 8 | 9 | *.meta text eol=lf 10 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: UPM on npsjs.com 2 | on: 3 | release: 4 | types: [created] 5 | jobs: 6 | publish: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v2 10 | - uses: actions/setup-node@v2 11 | with: 12 | registry-url: 'https://registry.npmjs.org' 13 | - run: npm publish 14 | working-directory: Packages/jp.keijiro.klak.cosinegradient 15 | env: 16 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Thumbs.db 2 | Desktop.ini 3 | .DS_Store 4 | *.swp 5 | 6 | /Library 7 | /Logs 8 | /Recordings 9 | /Temp 10 | /UserSettings 11 | -------------------------------------------------------------------------------- /Assets/GradientOverlay.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Klak.Chromatics; 3 | 4 | [ExecuteInEditMode, RequireComponent(typeof(Camera))] 5 | public class GradientOverlay : MonoBehaviour 6 | { 7 | #region Editable properties 8 | 9 | [Space] 10 | [SerializeField] CosineGradient _gradient = CosineGradient.DefaultGradient; 11 | [SerializeField, Range(0, 1)] float _opacity = 1; 12 | 13 | [Space] 14 | [SerializeField, Range(-180, 180)] float _direction = 0; 15 | [SerializeField, Range(0.01f, 2)] float _frequency = 0.5f; 16 | [SerializeField, Range(0.01f, 1)] float _scrollSpeed = 0.5f; 17 | 18 | [Space] 19 | [SerializeField, Range(0, 1)] float _noiseStrength = 1; 20 | [SerializeField, Range(0.01f, 1)] float _noiseAnimation = 0.5f; 21 | 22 | #endregion 23 | 24 | #region Private members 25 | 26 | [SerializeField, HideInInspector] Shader _shader = null; 27 | 28 | Material _material; 29 | float _scroll; 30 | float _noiseOffset; 31 | 32 | #endregion 33 | 34 | #region MonoBehaviour functions 35 | 36 | void OnDestroy() 37 | { 38 | if (Application.isPlaying) 39 | Destroy(_material); 40 | else 41 | DestroyImmediate(_material); 42 | } 43 | 44 | void Update() 45 | { 46 | if (!Application.isPlaying) return; 47 | 48 | _scroll += _scrollSpeed * Time.deltaTime; 49 | _noiseOffset += _noiseAnimation * Time.deltaTime; 50 | } 51 | 52 | void OnRenderImage(RenderTexture source, RenderTexture destination) 53 | { 54 | if (_material == null) 55 | { 56 | _material = new Material(_shader); 57 | _material.hideFlags = HideFlags.DontSave; 58 | } 59 | 60 | _material.SetMatrix("_Gradient", _gradient); 61 | _material.SetFloat("_Opacity", _opacity); 62 | 63 | var rad = Mathf.Deg2Rad * _direction; 64 | var dir = new Vector2(Mathf.Cos(rad), Mathf.Sin(rad)); 65 | _material.SetVector("_Direction", dir); 66 | 67 | _material.SetFloat("_Frequency", _frequency); 68 | _material.SetFloat("_Scroll", _scroll); 69 | 70 | _material.SetFloat("_NoiseStrength", _noiseStrength); 71 | _material.SetFloat("_NoiseAnimation", _noiseOffset); 72 | 73 | Graphics.Blit(source, destination, _material, 0); 74 | } 75 | 76 | #endregion 77 | } 78 | -------------------------------------------------------------------------------- /Assets/GradientOverlay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4503d177c808f2045970320735a8d12a 3 | timeCreated: 1489328219 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: 8 | - _gradient: {instanceID: 0} 9 | - _shader: {fileID: 4800000, guid: eed11391b9ef7294e8482544c6afbf82, type: 3} 10 | executionOrder: 0 11 | icon: {instanceID: 0} 12 | userData: 13 | assetBundleName: 14 | assetBundleVariant: 15 | -------------------------------------------------------------------------------- /Assets/GradientOverlay.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/GradientOverlay" 2 | { 3 | Properties 4 | { 5 | _MainTex("", 2D) = "white" {} 6 | } 7 | 8 | CGINCLUDE 9 | 10 | #include "UnityCG.cginc" 11 | #include "Packages/jp.keijiro.noiseshader/Shader/SimplexNoise3D.hlsl" 12 | #include "Packages/jp.keijiro.klak.cosinegradient/Runtime/CosineGradient.hlsl" 13 | 14 | sampler2D _MainTex; 15 | 16 | float4x4 _Gradient; 17 | float _Opacity; 18 | float2 _Direction; 19 | float _Frequency; 20 | float _Scroll; 21 | float _NoiseStrength; 22 | float _NoiseAnimation; 23 | 24 | float4 frag(v2f_img i) : SV_Target 25 | { 26 | // Base animation 27 | float2 uv = i.uv - 0.5; 28 | uv.x *= _ScreenParams.x * (_ScreenParams.w - 1); 29 | uv += _Direction * _Scroll; 30 | uv *= _Frequency; 31 | 32 | float p = dot(uv, _Direction); 33 | 34 | // Noise field 35 | p = lerp(p, SimplexNoise(float3(uv, _NoiseAnimation)), _NoiseStrength); 36 | 37 | // Pick color from the gradient. 38 | float3 rgb = CosineGradient(_Gradient, p); 39 | 40 | #if !defined(UNITY_COLORSPACE_GAMMA) 41 | rgb = GammaToLinearSpace(rgb); 42 | #endif 43 | 44 | // Mix with the source. 45 | float4 col = tex2D(_MainTex, i.uv); 46 | col.rgb = lerp(col.rgb, rgb, _Opacity); 47 | return col; 48 | } 49 | 50 | ENDCG 51 | 52 | SubShader 53 | { 54 | Cull Off ZWrite Off ZTest Always 55 | Pass 56 | { 57 | CGPROGRAM 58 | #pragma multi_compile __ UNITY_COLORSPACE_GAMMA 59 | #pragma vertex vert_img 60 | #pragma fragment frag 61 | ENDCG 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Assets/GradientOverlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eed11391b9ef7294e8482544c6afbf82 3 | timeCreated: 1489327698 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/GradientQuads.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Klak.Chromatics; 3 | 4 | [ExecuteInEditMode] 5 | public class GradientQuads : MonoBehaviour 6 | { 7 | [SerializeField] CosineGradient _grad = CosineGradient.DefaultGradient; 8 | [SerializeField] Material _material = null; 9 | [SerializeField] int _quadCount = 16; 10 | 11 | [SerializeField, HideInInspector] Mesh _mesh = null; 12 | 13 | MaterialPropertyBlock _block; 14 | 15 | public void Update() 16 | { 17 | if (_block == null) _block = new MaterialPropertyBlock(); 18 | 19 | for (var i = 0; i < _quadCount; i++) 20 | { 21 | var pos = transform.TransformPoint(Vector3.right * (i * 1.05f)); 22 | 23 | _block.SetColor("_Color", _grad.Evaluate(i / (_quadCount - 1.0f))); 24 | 25 | Graphics.DrawMesh 26 | (_mesh, pos, Quaternion.identity, 27 | _material, gameObject.layer, null, 0, _block); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/GradientQuads.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0be3e54f709e3b744b7e51093336fb06 3 | timeCreated: 1485598886 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: 8 | - _grad: {instanceID: 0} 9 | - _mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 10 | - _material: {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 11 | executionOrder: 0 12 | icon: {instanceID: 0} 13 | userData: 14 | assetBundleName: 15 | assetBundleVariant: 16 | -------------------------------------------------------------------------------- /Assets/Overlay.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.12107873, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 1 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 0 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 0 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &272578756 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 272578761} 133 | - component: {fileID: 272578760} 134 | - component: {fileID: 272578762} 135 | m_Layer: 0 136 | m_Name: Main Camera 137 | m_TagString: MainCamera 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!20 &272578760 143 | Camera: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 272578756} 149 | m_Enabled: 1 150 | serializedVersion: 2 151 | m_ClearFlags: 2 152 | m_BackGroundColor: {r: 0.11126732, g: 0.12804572, b: 0.1544118, a: 0} 153 | m_projectionMatrixMode: 1 154 | m_GateFitMode: 2 155 | m_FOVAxisMode: 0 156 | m_SensorSize: {x: 36, y: 24} 157 | m_LensShift: {x: 0, y: 0} 158 | m_FocalLength: 50 159 | m_NormalizedViewPortRect: 160 | serializedVersion: 2 161 | x: 0 162 | y: 0 163 | width: 1 164 | height: 1 165 | near clip plane: 0.3 166 | far clip plane: 100 167 | field of view: 60 168 | orthographic: 1 169 | orthographic size: 5 170 | m_Depth: -1 171 | m_CullingMask: 172 | serializedVersion: 2 173 | m_Bits: 4294967295 174 | m_RenderingPath: -1 175 | m_TargetTexture: {fileID: 0} 176 | m_TargetDisplay: 0 177 | m_TargetEye: 3 178 | m_HDR: 0 179 | m_AllowMSAA: 1 180 | m_AllowDynamicResolution: 0 181 | m_ForceIntoRT: 0 182 | m_OcclusionCulling: 0 183 | m_StereoConvergence: 10 184 | m_StereoSeparation: 0.022 185 | --- !u!4 &272578761 186 | Transform: 187 | m_ObjectHideFlags: 0 188 | m_CorrespondingSourceObject: {fileID: 0} 189 | m_PrefabInstance: {fileID: 0} 190 | m_PrefabAsset: {fileID: 0} 191 | m_GameObject: {fileID: 272578756} 192 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 193 | m_LocalPosition: {x: 0, y: 0, z: -10} 194 | m_LocalScale: {x: 1, y: 1, z: 1} 195 | m_Children: [] 196 | m_Father: {fileID: 0} 197 | m_RootOrder: 0 198 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 199 | --- !u!114 &272578762 200 | MonoBehaviour: 201 | m_ObjectHideFlags: 0 202 | m_CorrespondingSourceObject: {fileID: 0} 203 | m_PrefabInstance: {fileID: 0} 204 | m_PrefabAsset: {fileID: 0} 205 | m_GameObject: {fileID: 272578756} 206 | m_Enabled: 1 207 | m_EditorHideFlags: 0 208 | m_Script: {fileID: 11500000, guid: 4503d177c808f2045970320735a8d12a, type: 3} 209 | m_Name: 210 | m_EditorClassIdentifier: 211 | _gradient: 212 | R: 213 | x: 0.44 214 | y: 0.39 215 | z: 1 216 | w: 0 217 | G: 218 | x: 0.72 219 | y: 0.66 220 | z: 0.44 221 | w: 0.56 222 | B: 223 | x: 0.47 224 | y: 0.59 225 | z: 1 226 | w: 0.6 227 | _opacity: 1 228 | _direction: 0 229 | _frequency: 0.8 230 | _scrollSpeed: 0.5 231 | _noiseStrength: 0.675 232 | _noiseAnimation: 0.5 233 | _shader: {fileID: 4800000, guid: eed11391b9ef7294e8482544c6afbf82, type: 3} 234 | -------------------------------------------------------------------------------- /Assets/Overlay.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d14cc8238ef24345acfdec7892527d7 3 | timeCreated: 1485599222 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Swatch.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.12107873, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 1 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 0 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 0 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &272578756 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 272578761} 133 | - component: {fileID: 272578760} 134 | - component: {fileID: 272578758} 135 | - component: {fileID: 272578757} 136 | m_Layer: 0 137 | m_Name: Main Camera 138 | m_TagString: MainCamera 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!81 &272578757 144 | AudioListener: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 272578756} 150 | m_Enabled: 1 151 | --- !u!124 &272578758 152 | Behaviour: 153 | m_ObjectHideFlags: 0 154 | m_CorrespondingSourceObject: {fileID: 0} 155 | m_PrefabInstance: {fileID: 0} 156 | m_PrefabAsset: {fileID: 0} 157 | m_GameObject: {fileID: 272578756} 158 | m_Enabled: 1 159 | --- !u!20 &272578760 160 | Camera: 161 | m_ObjectHideFlags: 0 162 | m_CorrespondingSourceObject: {fileID: 0} 163 | m_PrefabInstance: {fileID: 0} 164 | m_PrefabAsset: {fileID: 0} 165 | m_GameObject: {fileID: 272578756} 166 | m_Enabled: 1 167 | serializedVersion: 2 168 | m_ClearFlags: 2 169 | m_BackGroundColor: {r: 0.11126732, g: 0.12804572, b: 0.1544118, a: 0} 170 | m_projectionMatrixMode: 1 171 | m_GateFitMode: 2 172 | m_FOVAxisMode: 0 173 | m_SensorSize: {x: 36, y: 24} 174 | m_LensShift: {x: 0, y: 0} 175 | m_FocalLength: 50 176 | m_NormalizedViewPortRect: 177 | serializedVersion: 2 178 | x: 0 179 | y: 0 180 | width: 1 181 | height: 1 182 | near clip plane: 0.3 183 | far clip plane: 100 184 | field of view: 60 185 | orthographic: 1 186 | orthographic size: 5 187 | m_Depth: -1 188 | m_CullingMask: 189 | serializedVersion: 2 190 | m_Bits: 4294967295 191 | m_RenderingPath: -1 192 | m_TargetTexture: {fileID: 0} 193 | m_TargetDisplay: 0 194 | m_TargetEye: 3 195 | m_HDR: 0 196 | m_AllowMSAA: 1 197 | m_AllowDynamicResolution: 0 198 | m_ForceIntoRT: 0 199 | m_OcclusionCulling: 0 200 | m_StereoConvergence: 10 201 | m_StereoSeparation: 0.022 202 | --- !u!4 &272578761 203 | Transform: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 272578756} 209 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 210 | m_LocalPosition: {x: 0, y: 0, z: -10} 211 | m_LocalScale: {x: 1, y: 1, z: 1} 212 | m_Children: [] 213 | m_Father: {fileID: 0} 214 | m_RootOrder: 0 215 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 216 | --- !u!1 &1736133698 217 | GameObject: 218 | m_ObjectHideFlags: 0 219 | m_CorrespondingSourceObject: {fileID: 0} 220 | m_PrefabInstance: {fileID: 0} 221 | m_PrefabAsset: {fileID: 0} 222 | serializedVersion: 6 223 | m_Component: 224 | - component: {fileID: 1736133700} 225 | - component: {fileID: 1736133699} 226 | m_Layer: 0 227 | m_Name: Gradient 228 | m_TagString: Untagged 229 | m_Icon: {fileID: 0} 230 | m_NavMeshLayer: 0 231 | m_StaticEditorFlags: 0 232 | m_IsActive: 1 233 | --- !u!114 &1736133699 234 | MonoBehaviour: 235 | m_ObjectHideFlags: 0 236 | m_CorrespondingSourceObject: {fileID: 0} 237 | m_PrefabInstance: {fileID: 0} 238 | m_PrefabAsset: {fileID: 0} 239 | m_GameObject: {fileID: 1736133698} 240 | m_Enabled: 1 241 | m_EditorHideFlags: 0 242 | m_Script: {fileID: 11500000, guid: 0be3e54f709e3b744b7e51093336fb06, type: 3} 243 | m_Name: 244 | m_EditorClassIdentifier: 245 | _grad: 246 | R: 247 | x: 0.41 248 | y: 0.06 249 | z: 1 250 | w: 0.17 251 | G: 252 | x: 0.37 253 | y: 0.28 254 | z: 0.96 255 | w: 0.72 256 | B: 257 | x: 0.56 258 | y: 0.32 259 | z: 0.2 260 | w: 0.37 261 | _material: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 262 | _quadCount: 16 263 | _mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 264 | --- !u!4 &1736133700 265 | Transform: 266 | m_ObjectHideFlags: 0 267 | m_CorrespondingSourceObject: {fileID: 0} 268 | m_PrefabInstance: {fileID: 0} 269 | m_PrefabAsset: {fileID: 0} 270 | m_GameObject: {fileID: 1736133698} 271 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 272 | m_LocalPosition: {x: -7.87, y: -2, z: 0} 273 | m_LocalScale: {x: 1, y: 1, z: 1} 274 | m_Children: [] 275 | m_Father: {fileID: 0} 276 | m_RootOrder: 3 277 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 278 | --- !u!1 &2024078309 279 | GameObject: 280 | m_ObjectHideFlags: 0 281 | m_CorrespondingSourceObject: {fileID: 0} 282 | m_PrefabInstance: {fileID: 0} 283 | m_PrefabAsset: {fileID: 0} 284 | serializedVersion: 6 285 | m_Component: 286 | - component: {fileID: 2024078311} 287 | - component: {fileID: 2024078310} 288 | m_Layer: 0 289 | m_Name: Gradient 290 | m_TagString: Untagged 291 | m_Icon: {fileID: 0} 292 | m_NavMeshLayer: 0 293 | m_StaticEditorFlags: 0 294 | m_IsActive: 1 295 | --- !u!114 &2024078310 296 | MonoBehaviour: 297 | m_ObjectHideFlags: 0 298 | m_CorrespondingSourceObject: {fileID: 0} 299 | m_PrefabInstance: {fileID: 0} 300 | m_PrefabAsset: {fileID: 0} 301 | m_GameObject: {fileID: 2024078309} 302 | m_Enabled: 1 303 | m_EditorHideFlags: 0 304 | m_Script: {fileID: 11500000, guid: 0be3e54f709e3b744b7e51093336fb06, type: 3} 305 | m_Name: 306 | m_EditorClassIdentifier: 307 | _grad: 308 | R: 309 | x: 0.44 310 | y: 0.32 311 | z: 1.76 312 | w: 0 313 | G: 314 | x: 0.36 315 | y: 0.39 316 | z: 0.72 317 | w: 0.72 318 | B: 319 | x: 0.45 320 | y: 0.29 321 | z: 1 322 | w: 0.6 323 | _material: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 324 | _quadCount: 16 325 | _mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 326 | --- !u!4 &2024078311 327 | Transform: 328 | m_ObjectHideFlags: 0 329 | m_CorrespondingSourceObject: {fileID: 0} 330 | m_PrefabInstance: {fileID: 0} 331 | m_PrefabAsset: {fileID: 0} 332 | m_GameObject: {fileID: 2024078309} 333 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 334 | m_LocalPosition: {x: -7.87, y: 0, z: 0} 335 | m_LocalScale: {x: 1, y: 1, z: 1} 336 | m_Children: [] 337 | m_Father: {fileID: 0} 338 | m_RootOrder: 2 339 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 340 | --- !u!1 &2103852689 341 | GameObject: 342 | m_ObjectHideFlags: 0 343 | m_CorrespondingSourceObject: {fileID: 0} 344 | m_PrefabInstance: {fileID: 0} 345 | m_PrefabAsset: {fileID: 0} 346 | serializedVersion: 6 347 | m_Component: 348 | - component: {fileID: 2103852691} 349 | - component: {fileID: 2103852690} 350 | m_Layer: 0 351 | m_Name: Gradient 352 | m_TagString: Untagged 353 | m_Icon: {fileID: 0} 354 | m_NavMeshLayer: 0 355 | m_StaticEditorFlags: 0 356 | m_IsActive: 1 357 | --- !u!114 &2103852690 358 | MonoBehaviour: 359 | m_ObjectHideFlags: 0 360 | m_CorrespondingSourceObject: {fileID: 0} 361 | m_PrefabInstance: {fileID: 0} 362 | m_PrefabAsset: {fileID: 0} 363 | m_GameObject: {fileID: 2103852689} 364 | m_Enabled: 1 365 | m_EditorHideFlags: 0 366 | m_Script: {fileID: 11500000, guid: 0be3e54f709e3b744b7e51093336fb06, type: 3} 367 | m_Name: 368 | m_EditorClassIdentifier: 369 | _grad: 370 | R: 371 | x: 0.44 372 | y: 0.39 373 | z: 1 374 | w: 0 375 | G: 376 | x: 0.72 377 | y: 0.66 378 | z: 0.44 379 | w: 0.56 380 | B: 381 | x: 0.47 382 | y: 0.59 383 | z: 1 384 | w: 0.6 385 | _material: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 386 | _quadCount: 16 387 | _mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 388 | --- !u!4 &2103852691 389 | Transform: 390 | m_ObjectHideFlags: 0 391 | m_CorrespondingSourceObject: {fileID: 0} 392 | m_PrefabInstance: {fileID: 0} 393 | m_PrefabAsset: {fileID: 0} 394 | m_GameObject: {fileID: 2103852689} 395 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 396 | m_LocalPosition: {x: -7.87, y: 2, z: 0} 397 | m_LocalScale: {x: 1, y: 1, z: 1} 398 | m_Children: [] 399 | m_Father: {fileID: 0} 400 | m_RootOrder: 1 401 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 402 | -------------------------------------------------------------------------------- /Assets/Swatch.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8935045e8b357364585dfb2f8422c022 3 | timeCreated: 1485599222 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6316b6f1835a3e84caee37a33985d868 3 | folderAsset: yes 4 | timeCreated: 1485598578 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/CosineGradientGraphDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace Klak.Chromatics { 5 | 6 | // 7 | // Internal class for drawing gradient graphs 8 | // 9 | 10 | sealed class CosineGradientGraphDrawer 11 | { 12 | #region Internal members 13 | 14 | // Preview shader (exists in the resources directory) 15 | const string PreviewShaderName = 16 | "Hidden/Klak/Chromatics/CosineGradient/Preview"; 17 | 18 | // Number of vertices in curve 19 | const int CurveResolution = 96; 20 | 21 | // Preview shader material 22 | static Material _material; 23 | 24 | // Draw area rectangle 25 | Rect _rect; 26 | 27 | // Vertex buffers 28 | Vector3[] _lineVertices = new Vector3[2]; 29 | Vector3[] _curveVertices = new Vector3[CurveResolution]; 30 | 31 | // Transform a point into the draw area rectangle. 32 | Vector3 PointInRect(float x, float y) 33 | => new Vector3(Mathf.Lerp(_rect.x, _rect.xMax, x), 34 | Mathf.Lerp(_rect.yMax, _rect.y, y), 0); 35 | 36 | #endregion 37 | 38 | #region Public methods 39 | 40 | public void SetRect(Rect rect) 41 | { 42 | // Shrink slightly 43 | rect.x += 3; 44 | rect.y ++; 45 | rect.width -= 4; 46 | rect.height -= 2; 47 | _rect = rect; 48 | } 49 | 50 | public void DrawLine(float x1, float y1, float x2, float y2, Color color) 51 | { 52 | _lineVertices[0] = PointInRect(x1, y1); 53 | _lineVertices[1] = PointInRect(x2, y2); 54 | 55 | Handles.color = color; 56 | Handles.DrawAAPolyLine(2, _lineVertices); 57 | } 58 | 59 | 60 | public void DrawGradientCurve(Vector4 coeffs, Color color) 61 | { 62 | for (var i = 0; i < CurveResolution; i++) 63 | { 64 | var x = (float)i / (CurveResolution - 1); 65 | var theta = (coeffs.z * x + coeffs.w) * Mathf.PI * 2; 66 | var y = coeffs.x + coeffs.y * Mathf.Cos(theta); 67 | _curveVertices[i] = PointInRect(x, Mathf.Clamp01(y)); 68 | } 69 | 70 | Handles.color = color; 71 | Handles.DrawAAPolyLine(2, CurveResolution, _curveVertices); 72 | } 73 | 74 | public void DrawPreview(CosineGradient grad) 75 | { 76 | if (_material == null) 77 | { 78 | _material = new Material(Shader.Find(PreviewShaderName)); 79 | _material.hideFlags = HideFlags.DontSave; 80 | } 81 | 82 | _material.SetMatrix("_Gradient", grad); 83 | 84 | EditorGUI.DrawPreviewTexture 85 | (_rect, EditorGUIUtility.whiteTexture, _material); 86 | } 87 | 88 | #endregion 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/CosineGradientGraphDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b8711efffcb691e98001d82924f5a34 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/CosineGradientPropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace Klak.Chromatics { 5 | 6 | // 7 | // Custom property drawer for CosineGradient 8 | // 9 | 10 | [CustomPropertyDrawer(typeof(CosineGradient))] 11 | public class CosineGradientPropertyDrawer : PropertyDrawer 12 | { 13 | #region Private members 14 | 15 | CosineGradientGraphDrawer _graph; 16 | 17 | static class Style 18 | { 19 | public static GUIContent Randomize = new GUIContent("Randomize"); 20 | } 21 | 22 | Vector4 ReadFloat4AsVector4(SerializedProperty prop) 23 | => new Vector4(prop.FindPropertyRelative("x").floatValue, 24 | prop.FindPropertyRelative("y").floatValue, 25 | prop.FindPropertyRelative("z").floatValue, 26 | prop.FindPropertyRelative("w").floatValue); 27 | 28 | void Randomize(SerializedProperty prop) 29 | { 30 | prop.serializedObject.Update(); 31 | prop.FindPropertyRelative("R.x").floatValue = Random.value; 32 | prop.FindPropertyRelative("R.y").floatValue = Random.value; 33 | prop.FindPropertyRelative("R.z").floatValue = Random.value * 2; 34 | prop.FindPropertyRelative("R.w").floatValue = Random.value; 35 | prop.FindPropertyRelative("G.x").floatValue = Random.value; 36 | prop.FindPropertyRelative("G.y").floatValue = Random.value; 37 | prop.FindPropertyRelative("G.z").floatValue = Random.value * 2; 38 | prop.FindPropertyRelative("G.w").floatValue = Random.value; 39 | prop.FindPropertyRelative("B.x").floatValue = Random.value; 40 | prop.FindPropertyRelative("B.y").floatValue = Random.value; 41 | prop.FindPropertyRelative("B.z").floatValue = Random.value * 2; 42 | prop.FindPropertyRelative("B.w").floatValue = Random.value; 43 | prop.serializedObject.ApplyModifiedProperties(); 44 | } 45 | 46 | #endregion 47 | 48 | #region PropertyDrawer implementation 49 | 50 | public override float 51 | GetPropertyHeight(SerializedProperty prop, GUIContent label) 52 | => EditorGUIUtility.singleLineHeight * 5 + 53 | EditorGUIUtility.standardVerticalSpacing * 4; 54 | 55 | public override void 56 | OnGUI(Rect rect, SerializedProperty prop, GUIContent label) 57 | { 58 | // Entry 59 | EditorGUI.BeginProperty(rect, label, prop); 60 | 61 | // Graph drawer object lazy initialization 62 | if (_graph == null) _graph = new CosineGradientGraphDrawer(); 63 | 64 | // -- Data retrieval 65 | 66 | // RGB component properties 67 | var rprop = prop.FindPropertyRelative("R"); 68 | var gprop = prop.FindPropertyRelative("G"); 69 | var bprop = prop.FindPropertyRelative("B"); 70 | 71 | // RGB component values 72 | var rvalue = ReadFloat4AsVector4(rprop); 73 | var gvalue = ReadFloat4AsVector4(gprop); 74 | var bvalue = ReadFloat4AsVector4(bprop); 75 | 76 | // Gradient reconstruction 77 | var gradient = new CosineGradient 78 | { R = rvalue, G = gvalue, B = bvalue }; 79 | 80 | // -- GUI 81 | 82 | // Basic constants 83 | var labelWidth = EditorGUIUtility.labelWidth; 84 | var lineHeight = EditorGUIUtility.singleLineHeight; 85 | var lineSpace = EditorGUIUtility.standardVerticalSpacing; 86 | 87 | // Draw the prefix label. 88 | var labelID = GUIUtility.GetControlID(FocusType.Passive); 89 | rect.height = lineHeight; 90 | EditorGUI.PrefixLabel(rect, labelID, label); 91 | 92 | // Calculate the graph area. 93 | rect.x += labelWidth; 94 | rect.width -= labelWidth; 95 | rect.height = lineHeight * 2 + lineSpace; 96 | _graph.SetRect(rect); 97 | 98 | // Right-click menu 99 | var ev = Event.current; 100 | if (ev.type == EventType.MouseDown && ev.button == 1 && 101 | rect.Contains(ev.mousePosition)) 102 | { 103 | var menu = new GenericMenu(); 104 | menu.AddItem(Style.Randomize, false, () => Randomize(prop)); 105 | menu.ShowAsContext(); 106 | ev.Use(); 107 | } 108 | 109 | // Graph: Background 110 | _graph.DrawPreview(gradient); 111 | 112 | // Graph: Horizontal line 113 | var lineColor = Color.white * 0.4f; 114 | _graph.DrawLine(0, 0.5f, 1, 0.5f, lineColor); 115 | 116 | // Graph: Vertical lines 117 | _graph.DrawLine(0.25f, 0, 0.25f, 1, lineColor); 118 | _graph.DrawLine(0.50f, 0, 0.50f, 1, lineColor); 119 | _graph.DrawLine(0.75f, 0, 0.75f, 1, lineColor); 120 | 121 | // Graph: R/G/B curves 122 | _graph.DrawGradientCurve(rvalue, Color.red); 123 | _graph.DrawGradientCurve(gvalue, Color.green); 124 | _graph.DrawGradientCurve(bvalue, Color.blue); 125 | 126 | // Calculate the field edit area. 127 | rect.height = lineHeight; 128 | rect.y += lineHeight * 2 + lineSpace * 2; 129 | 130 | // Minimize the label width. 131 | EditorGUIUtility.labelWidth = 12; 132 | 133 | // Cancel indentation. 134 | var indent = EditorGUI.indentLevel; 135 | EditorGUI.indentLevel = 0; 136 | 137 | // Red 138 | EditorGUI.PropertyField(rect, rprop, GUIContent.none); 139 | rect.y += lineHeight + lineSpace; 140 | 141 | // Green 142 | EditorGUI.PropertyField(rect, gprop, GUIContent.none); 143 | rect.y += lineHeight + lineSpace; 144 | 145 | // Blue 146 | EditorGUI.PropertyField(rect, bprop, GUIContent.none); 147 | 148 | // Recover the original label width and indent level. 149 | EditorGUIUtility.labelWidth = labelWidth; 150 | EditorGUI.indentLevel = indent; 151 | 152 | // Exit 153 | EditorGUI.EndProperty(); 154 | } 155 | 156 | #endregion 157 | } 158 | 159 | } // namespace Klak.Chromatics 160 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/CosineGradientPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d41a30b93fdfb5c439685191d6fce80a 3 | timeCreated: 1485595451 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: 8 | - _previewShader: {fileID: 4800000, guid: ac95681b71654b04196e7be8268726c1, type: 3} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/Klak.Chromatics.CosineGradient.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Klak.Chromatics.CosineGradient.Editor", 3 | "references": [ 4 | "GUID:4940e6b024efb262a9ad5ceb27a831c9", 5 | "GUID:d8b63aba1907145bea998dd612889d6b" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/Klak.Chromatics.CosineGradient.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6de88cbb62164b5fbb808574e428e5a4 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/Preview.shader: -------------------------------------------------------------------------------- 1 | // Preview shader for custom property drawer 2 | Shader "Hidden/Klak/Chromatics/CosineGradient/Preview" 3 | { 4 | CGINCLUDE 5 | 6 | #include "UnityCG.cginc" 7 | #include "Packages/jp.keijiro.klak.cosinegradient/Runtime/CosineGradient.hlsl" 8 | 9 | float4x4 _Gradient; 10 | 11 | float4 frag(v2f_img i) : SV_Target 12 | { 13 | return float4(CosineGradient(_Gradient, i.uv.x), 1); 14 | } 15 | 16 | ENDCG 17 | 18 | SubShader 19 | { 20 | Pass 21 | { 22 | CGPROGRAM 23 | #pragma vertex vert_img 24 | #pragma fragment frag 25 | ENDCG 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Editor/Preview.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac95681b71654b04196e7be8268726c1 3 | timeCreated: 1485592925 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f56c52d6ec5d3e80db207c898ac615e3 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/README.md: -------------------------------------------------------------------------------- 1 | CosineGradient 2 | ============== 3 | 4 | ![gif](https://i.imgur.com/z0KYTCt.gif) 5 | 6 | **CosineGradient** is a Unity package for generating cosine-based gradients. 7 | 8 | The idea of cosine-based gradients is based on an article written by Íñigo 9 | Quílez. See [the original article] for further details. 10 | 11 | [the original article]: 12 | http://www.iquilezles.org/www/articles/palettes/palettes.htm 13 | 14 | Installation 15 | ------------ 16 | 17 | This package uses the [scoped registry] feature to resolve package 18 | dependencies. Please add the following sections to the manifest file 19 | (Packages/manifest.json). 20 | 21 | [scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html 22 | 23 | To the `scopedRegistries` section: 24 | 25 | ``` 26 | { 27 | "name": "Keijiro", 28 | "url": "https://registry.npmjs.com", 29 | "scopes": [ "jp.keijiro" ] 30 | } 31 | ``` 32 | 33 | To the `dependencies` section: 34 | 35 | ``` 36 | "jp.keijiro.klak.cosinegradient": "1.1.0" 37 | ``` 38 | 39 | After changes, the manifest file should look like below: 40 | 41 | ``` 42 | { 43 | "scopedRegistries": [ 44 | { 45 | "name": "Keijiro", 46 | "url": "https://registry.npmjs.com", 47 | "scopes": [ "jp.keijiro" ] 48 | } 49 | ], 50 | "dependencies": { 51 | "jp.keijiro.klak.cosinegradient": "1.1.0", 52 | ... 53 | ``` 54 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 302450d78c5ae5b64b4982bc59599ae7 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73d721701b49e178191e51851c42dd22 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime/CosineGradient.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Mathematics; 3 | 4 | namespace Klak.Chromatics 5 | { 6 | [System.Serializable] 7 | public struct CosineGradient 8 | { 9 | #region Public members 10 | 11 | public float4 R, G, B; 12 | 13 | #endregion 14 | 15 | #region Default value 16 | 17 | public static CosineGradient DefaultGradient 18 | => new CosineGradient 19 | { R = math.float4(0.5f, 0.5f, 1, 0), 20 | G = math.float4(0.5f, 0.5f, 1, 1.0f / 3), 21 | B = math.float4(0.5f, 0.5f, 1, 2.0f / 3) }; 22 | 23 | #endregion 24 | 25 | #region Accessor properties 26 | 27 | public float3 CoeffsA => math.float3(R.x, G.x, B.x); 28 | public float3 CoeffsB => math.float3(R.y, G.y, B.y); 29 | public float3 CoeffsC => math.float3(R.z, G.z, B.z); 30 | public float3 CoeffsD => math.float3(R.w, G.w, B.w); 31 | 32 | public float3 CoeffsC2 => CoeffsC * math.PI * 2; 33 | public float3 CoeffsD2 => CoeffsD * math.PI * 2; 34 | 35 | #endregion 36 | 37 | #region Conversion operator 38 | 39 | public static implicit operator float4x3(CosineGradient g) 40 | => math.float4x3(g.R, g.G, g.B); 41 | 42 | public static implicit operator Matrix4x4(CosineGradient g) 43 | => new Matrix4x4(g.R, g.G, g.B, Vector4.zero); 44 | 45 | #endregion 46 | 47 | #region Evaluator method 48 | 49 | public float3 EvaluateAsFloat3(float t) 50 | => CoeffsA + CoeffsB * math.cos(CoeffsC2 * t + CoeffsD2); 51 | 52 | public Color Evaluate(float t) 53 | { 54 | var c = EvaluateAsFloat3(t); 55 | return new Color(c.x, c.y, c.z); 56 | } 57 | 58 | #endregion 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime/CosineGradient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54276434dda9c694e85abaf98cdd981d 3 | timeCreated: 1485582313 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime/CosineGradient.hlsl: -------------------------------------------------------------------------------- 1 | float3 CosineGradient(float3 A, float3 B, float3 C, float3 D, float t) 2 | { 3 | return saturate(A + B * cos(C * t + D)); 4 | } 5 | 6 | float3 CosineGradient(float4x3 grad, float t) 7 | { 8 | const float tau = 6.283185307179586476925; 9 | return CosineGradient(grad._11_12_13, 10 | grad._21_22_23, 11 | grad._31_32_33 * tau, 12 | grad._41_42_43 * tau, t); 13 | } 14 | 15 | float3 CosineGradient(float4x4 grad, float t) 16 | { 17 | const float tau = 6.283185307179586476925; 18 | return CosineGradient(grad._11_12_13, 19 | grad._21_22_23, 20 | grad._31_32_33 * tau, 21 | grad._41_42_43 * tau, t); 22 | } 23 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime/CosineGradient.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9558523db0d8afea1ab03b691875a915 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime/Klak.Chromatics.CosineGradient.Runtime.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Klak.Chromatics.CosineGradient.Runtime", 3 | "references": [ 4 | "GUID:d8b63aba1907145bea998dd612889d6b" 5 | ], 6 | "includePlatforms": [], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/Runtime/Klak.Chromatics.CosineGradient.Runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4940e6b024efb262a9ad5ceb27a831c9 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Keijiro Takahashi", 3 | "dependencies": { "com.unity.mathematics": "1.1.0" }, 4 | "description": "Procedural color generator based on simple cosine formulas", 5 | "displayName": "Cosine Gradient", 6 | "keywords": [ "unity" ], 7 | "license": "Unlicense", 8 | "name": "jp.keijiro.klak.cosinegradient", 9 | "repository": "github:keijiro/CosineGradient", 10 | "unity": "2019.4", 11 | "unityRelease": "0f1", 12 | "version": "1.1.0" 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.klak.cosinegradient/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa93dcca10d64e3a2b12bd60eac07d2c 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "scopedRegistries": [ 3 | { 4 | "name": "Keijiro", 5 | "url": "https://registry.npmjs.com", 6 | "scopes": [ "jp.keijiro" ] 7 | } 8 | ], 9 | "dependencies": { 10 | "jp.keijiro.noiseshader": "2.0.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.mathematics": { 4 | "version": "1.2.5", 5 | "depth": 1, 6 | "source": "registry", 7 | "dependencies": {}, 8 | "url": "https://packages.unity.com" 9 | }, 10 | "jp.keijiro.klak.cosinegradient": { 11 | "version": "file:jp.keijiro.klak.cosinegradient", 12 | "depth": 0, 13 | "source": "embedded", 14 | "dependencies": { 15 | "com.unity.mathematics": "1.1.0" 16 | } 17 | }, 18 | "jp.keijiro.noiseshader": { 19 | "version": "2.0.0", 20 | "depth": 0, 21 | "source": "registry", 22 | "dependencies": {}, 23 | "url": "https://registry.npmjs.com" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 1 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 2 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 0 16 | m_EtcTextureFastCompressor: 2 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 5 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 1 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_TierSettings_Tier1: 43 | renderingPath: 1 44 | useCascadedShadowMaps: 1 45 | m_TierSettings_Tier2: 46 | renderingPath: 1 47 | useCascadedShadowMaps: 1 48 | m_TierSettings_Tier3: 49 | renderingPath: 1 50 | useCascadedShadowMaps: 1 51 | m_DefaultRenderingPath: 1 52 | m_DefaultMobileRenderingPath: 1 53 | m_TierSettings: [] 54 | m_LightmapStripping: 0 55 | m_FogStripping: 0 56 | m_LightmapKeepPlain: 1 57 | m_LightmapKeepDirCombined: 1 58 | m_LightmapKeepDirSeparate: 1 59 | m_LightmapKeepDynamicPlain: 1 60 | m_LightmapKeepDynamicDirCombined: 1 61 | m_LightmapKeepDynamicDirSeparate: 1 62 | m_FogKeepLinear: 1 63 | m_FogKeepExp: 1 64 | m_FogKeepExp2: 1 65 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 0 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | - m_Id: scoped:Keijiro 29 | m_Name: Keijiro 30 | m_Url: https://registry.npmjs.com 31 | m_Scopes: 32 | - jp.keijiro 33 | m_IsDefault: 0 34 | m_Capabilities: 0 35 | m_UserSelectedRegistryName: 36 | m_UserAddingNewScopedRegistry: 0 37 | m_RegistryInfoDraft: 38 | m_Modified: 0 39 | m_ErrorMessage: 40 | m_UserModificationsInstanceId: -848 41 | m_OriginalInstanceId: -850 42 | m_LoadAssets: 0 43 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ShowColliderAABB: 0 29 | m_ContactArrowScale: 0.2 30 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 31 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 32 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 33 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 34 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 35 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 23 7 | productGUID: 8e533c34644d8f84f886f984e2748aa0 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: CosineGradient 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 0 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 1 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 0 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 0 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 0 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 0 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 1 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 0 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 0 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 1.0 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 0 143 | xboxOneEnable7thCore: 0 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | useHDRDisplay: 0 149 | D3DHDRBitDepth: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: 156 | Android: com.Company.ProductName 157 | Standalone: com.DefaultCompany.CosineGradient 158 | Tizen: com.Company.ProductName 159 | iPhone: com.Company.ProductName 160 | tvOS: com.Company.ProductName 161 | buildNumber: 162 | Standalone: 0 163 | iPhone: 0 164 | tvOS: 0 165 | overrideDefaultApplicationIdentifier: 0 166 | AndroidBundleVersionCode: 1 167 | AndroidMinSdkVersion: 22 168 | AndroidTargetSdkVersion: 0 169 | AndroidPreferredInstallLocation: 1 170 | aotOptions: 171 | stripEngineCode: 1 172 | iPhoneStrippingLevel: 0 173 | iPhoneScriptCallOptimization: 0 174 | ForceInternetPermission: 0 175 | ForceSDCardPermission: 0 176 | CreateWallpaper: 0 177 | APKExpansionFiles: 0 178 | keepLoadedShadersAlive: 0 179 | StripUnusedMeshComponents: 0 180 | VertexChannelCompressionMask: 214 181 | iPhoneSdkVersion: 988 182 | iOSTargetOSVersionString: 11.0 183 | tvOSSdkVersion: 0 184 | tvOSRequireExtendedGameController: 0 185 | tvOSTargetOSVersionString: 11.0 186 | uIPrerenderedIcon: 0 187 | uIRequiresPersistentWiFi: 0 188 | uIRequiresFullScreen: 1 189 | uIStatusBarHidden: 1 190 | uIExitOnSuspend: 0 191 | uIStatusBarStyle: 0 192 | appleTVSplashScreen: {fileID: 0} 193 | appleTVSplashScreen2x: {fileID: 0} 194 | tvOSSmallIconLayers: [] 195 | tvOSSmallIconLayers2x: [] 196 | tvOSLargeIconLayers: [] 197 | tvOSLargeIconLayers2x: [] 198 | tvOSTopShelfImageLayers: [] 199 | tvOSTopShelfImageLayers2x: [] 200 | tvOSTopShelfImageWideLayers: [] 201 | tvOSTopShelfImageWideLayers2x: [] 202 | iOSLaunchScreenType: 0 203 | iOSLaunchScreenPortrait: {fileID: 0} 204 | iOSLaunchScreenLandscape: {fileID: 0} 205 | iOSLaunchScreenBackgroundColor: 206 | serializedVersion: 2 207 | rgba: 0 208 | iOSLaunchScreenFillPct: 100 209 | iOSLaunchScreenSize: 100 210 | iOSLaunchScreenCustomXibPath: 211 | iOSLaunchScreeniPadType: 0 212 | iOSLaunchScreeniPadImage: {fileID: 0} 213 | iOSLaunchScreeniPadBackgroundColor: 214 | serializedVersion: 2 215 | rgba: 0 216 | iOSLaunchScreeniPadFillPct: 100 217 | iOSLaunchScreeniPadSize: 100 218 | iOSLaunchScreeniPadCustomXibPath: 219 | iOSLaunchScreenCustomStoryboardPath: 220 | iOSLaunchScreeniPadCustomStoryboardPath: 221 | iOSDeviceRequirements: [] 222 | iOSURLSchemes: [] 223 | macOSURLSchemes: [] 224 | iOSBackgroundModes: 0 225 | iOSMetalForceHardShadows: 0 226 | metalEditorSupport: 1 227 | metalAPIValidation: 1 228 | iOSRenderExtraFrameOnPause: 1 229 | iosCopyPluginsCodeInsteadOfSymlink: 0 230 | appleDeveloperTeamID: 231 | iOSManualSigningProvisioningProfileID: 232 | tvOSManualSigningProvisioningProfileID: 233 | iOSManualSigningProvisioningProfileType: 0 234 | tvOSManualSigningProvisioningProfileType: 0 235 | appleEnableAutomaticSigning: 0 236 | iOSRequireARKit: 0 237 | iOSAutomaticallyDetectAndAddCapabilities: 1 238 | appleEnableProMotion: 0 239 | shaderPrecisionModel: 0 240 | clonedFromGUID: 00000000000000000000000000000000 241 | templatePackageId: 242 | templateDefaultScene: 243 | useCustomMainManifest: 0 244 | useCustomLauncherManifest: 0 245 | useCustomMainGradleTemplate: 0 246 | useCustomLauncherGradleManifest: 0 247 | useCustomBaseGradleTemplate: 0 248 | useCustomGradlePropertiesTemplate: 0 249 | useCustomProguardFile: 0 250 | AndroidTargetArchitectures: 5 251 | AndroidTargetDevices: 0 252 | AndroidSplashScreenScale: 0 253 | androidSplashScreen: {fileID: 0} 254 | AndroidKeystoreName: '{inproject}: ' 255 | AndroidKeyaliasName: 256 | AndroidBuildApkPerCpuArchitecture: 0 257 | AndroidTVCompatibility: 1 258 | AndroidIsGame: 1 259 | AndroidEnableTango: 0 260 | androidEnableBanner: 1 261 | androidUseLowAccuracyLocation: 0 262 | androidUseCustomKeystore: 0 263 | m_AndroidBanners: 264 | - width: 320 265 | height: 180 266 | banner: {fileID: 0} 267 | androidGamepadSupportLevel: 0 268 | chromeosInputEmulation: 1 269 | AndroidMinifyWithR8: 0 270 | AndroidMinifyRelease: 0 271 | AndroidMinifyDebug: 0 272 | AndroidValidateAppBundleSize: 1 273 | AndroidAppBundleSizeToValidate: 150 274 | m_BuildTargetIcons: [] 275 | m_BuildTargetPlatformIcons: [] 276 | m_BuildTargetBatching: [] 277 | m_BuildTargetGraphicsJobs: 278 | - m_BuildTarget: WindowsStandaloneSupport 279 | m_GraphicsJobs: 0 280 | - m_BuildTarget: MacStandaloneSupport 281 | m_GraphicsJobs: 0 282 | - m_BuildTarget: LinuxStandaloneSupport 283 | m_GraphicsJobs: 0 284 | - m_BuildTarget: AndroidPlayer 285 | m_GraphicsJobs: 0 286 | - m_BuildTarget: iOSSupport 287 | m_GraphicsJobs: 0 288 | - m_BuildTarget: PS4Player 289 | m_GraphicsJobs: 0 290 | - m_BuildTarget: PS5Player 291 | m_GraphicsJobs: 0 292 | - m_BuildTarget: XboxOnePlayer 293 | m_GraphicsJobs: 0 294 | - m_BuildTarget: GameCoreXboxOneSupport 295 | m_GraphicsJobs: 0 296 | - m_BuildTarget: GameCoreScarlettSupport 297 | m_GraphicsJobs: 0 298 | - m_BuildTarget: Switch 299 | m_GraphicsJobs: 0 300 | - m_BuildTarget: WebGLSupport 301 | m_GraphicsJobs: 0 302 | - m_BuildTarget: MetroSupport 303 | m_GraphicsJobs: 0 304 | - m_BuildTarget: AppleTVSupport 305 | m_GraphicsJobs: 0 306 | - m_BuildTarget: BJMSupport 307 | m_GraphicsJobs: 0 308 | - m_BuildTarget: LuminSupport 309 | m_GraphicsJobs: 0 310 | - m_BuildTarget: CloudRendering 311 | m_GraphicsJobs: 0 312 | - m_BuildTarget: EmbeddedLinux 313 | m_GraphicsJobs: 0 314 | m_BuildTargetGraphicsJobMode: 315 | - m_BuildTarget: PS4Player 316 | m_GraphicsJobMode: 0 317 | - m_BuildTarget: XboxOnePlayer 318 | m_GraphicsJobMode: 0 319 | m_BuildTargetGraphicsAPIs: 320 | - m_BuildTarget: iOSSupport 321 | m_APIs: 10000000 322 | m_Automatic: 1 323 | - m_BuildTarget: AndroidPlayer 324 | m_APIs: 0b00000008000000 325 | m_Automatic: 0 326 | m_BuildTargetVRSettings: [] 327 | openGLRequireES31: 0 328 | openGLRequireES31AEP: 0 329 | openGLRequireES32: 0 330 | m_TemplateCustomTags: {} 331 | mobileMTRendering: 332 | iPhone: 1 333 | tvOS: 1 334 | m_BuildTargetGroupLightmapEncodingQuality: 335 | - m_BuildTarget: Standalone 336 | m_EncodingQuality: 1 337 | - m_BuildTarget: XboxOne 338 | m_EncodingQuality: 1 339 | - m_BuildTarget: PS4 340 | m_EncodingQuality: 1 341 | m_BuildTargetGroupLightmapSettings: [] 342 | m_BuildTargetNormalMapEncoding: [] 343 | m_BuildTargetDefaultTextureCompressionFormat: [] 344 | playModeTestRunnerEnabled: 0 345 | runPlayModeTestAsEditModeTest: 0 346 | actionOnDotNetUnhandledException: 1 347 | enableInternalProfiler: 0 348 | logObjCUncaughtExceptions: 1 349 | enableCrashReportAPI: 0 350 | cameraUsageDescription: 351 | locationUsageDescription: 352 | microphoneUsageDescription: 353 | bluetoothUsageDescription: 354 | switchNMETAOverride: 355 | switchNetLibKey: 356 | switchSocketMemoryPoolSize: 6144 357 | switchSocketAllocatorPoolSize: 128 358 | switchSocketConcurrencyLimit: 14 359 | switchScreenResolutionBehavior: 2 360 | switchUseCPUProfiler: 0 361 | switchUseGOLDLinker: 0 362 | switchLTOSetting: 0 363 | switchApplicationID: 0x01004b9000490000 364 | switchNSODependencies: 365 | switchTitleNames_0: 366 | switchTitleNames_1: 367 | switchTitleNames_2: 368 | switchTitleNames_3: 369 | switchTitleNames_4: 370 | switchTitleNames_5: 371 | switchTitleNames_6: 372 | switchTitleNames_7: 373 | switchTitleNames_8: 374 | switchTitleNames_9: 375 | switchTitleNames_10: 376 | switchTitleNames_11: 377 | switchTitleNames_12: 378 | switchTitleNames_13: 379 | switchTitleNames_14: 380 | switchTitleNames_15: 381 | switchPublisherNames_0: 382 | switchPublisherNames_1: 383 | switchPublisherNames_2: 384 | switchPublisherNames_3: 385 | switchPublisherNames_4: 386 | switchPublisherNames_5: 387 | switchPublisherNames_6: 388 | switchPublisherNames_7: 389 | switchPublisherNames_8: 390 | switchPublisherNames_9: 391 | switchPublisherNames_10: 392 | switchPublisherNames_11: 393 | switchPublisherNames_12: 394 | switchPublisherNames_13: 395 | switchPublisherNames_14: 396 | switchPublisherNames_15: 397 | switchIcons_0: {fileID: 0} 398 | switchIcons_1: {fileID: 0} 399 | switchIcons_2: {fileID: 0} 400 | switchIcons_3: {fileID: 0} 401 | switchIcons_4: {fileID: 0} 402 | switchIcons_5: {fileID: 0} 403 | switchIcons_6: {fileID: 0} 404 | switchIcons_7: {fileID: 0} 405 | switchIcons_8: {fileID: 0} 406 | switchIcons_9: {fileID: 0} 407 | switchIcons_10: {fileID: 0} 408 | switchIcons_11: {fileID: 0} 409 | switchIcons_12: {fileID: 0} 410 | switchIcons_13: {fileID: 0} 411 | switchIcons_14: {fileID: 0} 412 | switchIcons_15: {fileID: 0} 413 | switchSmallIcons_0: {fileID: 0} 414 | switchSmallIcons_1: {fileID: 0} 415 | switchSmallIcons_2: {fileID: 0} 416 | switchSmallIcons_3: {fileID: 0} 417 | switchSmallIcons_4: {fileID: 0} 418 | switchSmallIcons_5: {fileID: 0} 419 | switchSmallIcons_6: {fileID: 0} 420 | switchSmallIcons_7: {fileID: 0} 421 | switchSmallIcons_8: {fileID: 0} 422 | switchSmallIcons_9: {fileID: 0} 423 | switchSmallIcons_10: {fileID: 0} 424 | switchSmallIcons_11: {fileID: 0} 425 | switchSmallIcons_12: {fileID: 0} 426 | switchSmallIcons_13: {fileID: 0} 427 | switchSmallIcons_14: {fileID: 0} 428 | switchSmallIcons_15: {fileID: 0} 429 | switchManualHTML: 430 | switchAccessibleURLs: 431 | switchLegalInformation: 432 | switchMainThreadStackSize: 1048576 433 | switchPresenceGroupId: 434 | switchLogoHandling: 0 435 | switchReleaseVersion: 0 436 | switchDisplayVersion: 1.0.0 437 | switchStartupUserAccount: 0 438 | switchTouchScreenUsage: 0 439 | switchSupportedLanguagesMask: 0 440 | switchLogoType: 0 441 | switchApplicationErrorCodeCategory: 442 | switchUserAccountSaveDataSize: 0 443 | switchUserAccountSaveDataJournalSize: 0 444 | switchApplicationAttribute: 0 445 | switchCardSpecSize: -1 446 | switchCardSpecClock: -1 447 | switchRatingsMask: 0 448 | switchRatingsInt_0: 0 449 | switchRatingsInt_1: 0 450 | switchRatingsInt_2: 0 451 | switchRatingsInt_3: 0 452 | switchRatingsInt_4: 0 453 | switchRatingsInt_5: 0 454 | switchRatingsInt_6: 0 455 | switchRatingsInt_7: 0 456 | switchRatingsInt_8: 0 457 | switchRatingsInt_9: 0 458 | switchRatingsInt_10: 0 459 | switchRatingsInt_11: 0 460 | switchRatingsInt_12: 0 461 | switchLocalCommunicationIds_0: 462 | switchLocalCommunicationIds_1: 463 | switchLocalCommunicationIds_2: 464 | switchLocalCommunicationIds_3: 465 | switchLocalCommunicationIds_4: 466 | switchLocalCommunicationIds_5: 467 | switchLocalCommunicationIds_6: 468 | switchLocalCommunicationIds_7: 469 | switchParentalControl: 0 470 | switchAllowsScreenshot: 1 471 | switchAllowsVideoCapturing: 1 472 | switchAllowsRuntimeAddOnContentInstall: 0 473 | switchDataLossConfirmation: 0 474 | switchUserAccountLockEnabled: 0 475 | switchSystemResourceMemory: 16777216 476 | switchSupportedNpadStyles: 3 477 | switchNativeFsCacheSize: 32 478 | switchIsHoldTypeHorizontal: 0 479 | switchSupportedNpadCount: 8 480 | switchSocketConfigEnabled: 0 481 | switchTcpInitialSendBufferSize: 32 482 | switchTcpInitialReceiveBufferSize: 64 483 | switchTcpAutoSendBufferSizeMax: 256 484 | switchTcpAutoReceiveBufferSizeMax: 256 485 | switchUdpSendBufferSize: 9 486 | switchUdpReceiveBufferSize: 42 487 | switchSocketBufferEfficiency: 4 488 | switchSocketInitializeEnabled: 1 489 | switchNetworkInterfaceManagerInitializeEnabled: 1 490 | switchPlayerConnectionEnabled: 1 491 | switchUseNewStyleFilepaths: 0 492 | switchUseMicroSleepForYield: 1 493 | switchEnableRamDiskSupport: 0 494 | switchMicroSleepForYieldTime: 25 495 | switchRamDiskSpaceSize: 12 496 | ps4NPAgeRating: 12 497 | ps4NPTitleSecret: 498 | ps4NPTrophyPackPath: 499 | ps4ParentalLevel: 1 500 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 501 | ps4Category: 0 502 | ps4MasterVersion: 01.00 503 | ps4AppVersion: 01.00 504 | ps4AppType: 0 505 | ps4ParamSfxPath: 506 | ps4VideoOutPixelFormat: 0 507 | ps4VideoOutInitialWidth: 1920 508 | ps4VideoOutBaseModeInitialWidth: 1920 509 | ps4VideoOutReprojectionRate: 120 510 | ps4PronunciationXMLPath: 511 | ps4PronunciationSIGPath: 512 | ps4BackgroundImagePath: 513 | ps4StartupImagePath: 514 | ps4StartupImagesFolder: 515 | ps4IconImagesFolder: 516 | ps4SaveDataImagePath: 517 | ps4SdkOverride: 518 | ps4BGMPath: 519 | ps4ShareFilePath: 520 | ps4ShareOverlayImagePath: 521 | ps4PrivacyGuardImagePath: 522 | ps4ExtraSceSysFile: 523 | ps4NPtitleDatPath: 524 | ps4RemotePlayKeyAssignment: -1 525 | ps4RemotePlayKeyMappingDir: 526 | ps4PlayTogetherPlayerCount: 0 527 | ps4EnterButtonAssignment: 1 528 | ps4ApplicationParam1: 0 529 | ps4ApplicationParam2: 0 530 | ps4ApplicationParam3: 0 531 | ps4ApplicationParam4: 0 532 | ps4DownloadDataSize: 0 533 | ps4GarlicHeapSize: 2048 534 | ps4ProGarlicHeapSize: 2560 535 | playerPrefsMaxSize: 32768 536 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 537 | ps4pnSessions: 1 538 | ps4pnPresence: 1 539 | ps4pnFriends: 1 540 | ps4pnGameCustomData: 1 541 | playerPrefsSupport: 0 542 | enableApplicationExit: 0 543 | resetTempFolder: 1 544 | restrictedAudioUsageRights: 0 545 | ps4UseResolutionFallback: 0 546 | ps4ReprojectionSupport: 0 547 | ps4UseAudio3dBackend: 0 548 | ps4UseLowGarlicFragmentationMode: 1 549 | ps4SocialScreenEnabled: 0 550 | ps4ScriptOptimizationLevel: 3 551 | ps4Audio3dVirtualSpeakerCount: 14 552 | ps4attribCpuUsage: 0 553 | ps4PatchPkgPath: 554 | ps4PatchLatestPkgPath: 555 | ps4PatchChangeinfoPath: 556 | ps4PatchDayOne: 0 557 | ps4attribUserManagement: 0 558 | ps4attribMoveSupport: 0 559 | ps4attrib3DSupport: 0 560 | ps4attribShareSupport: 0 561 | ps4attribExclusiveVR: 0 562 | ps4disableAutoHideSplash: 0 563 | ps4videoRecordingFeaturesUsed: 0 564 | ps4contentSearchFeaturesUsed: 0 565 | ps4CompatibilityPS5: 0 566 | ps4GPU800MHz: 1 567 | ps4attribEyeToEyeDistanceSettingVR: 0 568 | ps4IncludedModules: [] 569 | ps4attribVROutputEnabled: 0 570 | monoEnv: 571 | splashScreenBackgroundSourceLandscape: {fileID: 0} 572 | splashScreenBackgroundSourcePortrait: {fileID: 0} 573 | blurSplashScreenBackground: 1 574 | spritePackerPolicy: 575 | webGLMemorySize: 256 576 | webGLExceptionSupport: 1 577 | webGLNameFilesAsHashes: 0 578 | webGLDataCaching: 0 579 | webGLDebugSymbols: 0 580 | webGLEmscriptenArgs: 581 | webGLModulesDirectory: 582 | webGLTemplate: APPLICATION:Default 583 | webGLAnalyzeBuildSize: 0 584 | webGLUseEmbeddedResources: 0 585 | webGLCompressionFormat: 1 586 | webGLWasmArithmeticExceptions: 0 587 | webGLLinkerTarget: 0 588 | webGLThreadsSupport: 0 589 | webGLDecompressionFallback: 0 590 | scriptingDefineSymbols: {} 591 | additionalCompilerArguments: {} 592 | platformArchitecture: {} 593 | scriptingBackend: {} 594 | il2cppCompilerConfiguration: {} 595 | managedStrippingLevel: {} 596 | incrementalIl2cppBuild: {} 597 | suppressCommonWarnings: 1 598 | allowUnsafeCode: 0 599 | useDeterministicCompilation: 1 600 | enableRoslynAnalyzers: 1 601 | additionalIl2CppArgs: 602 | scriptingRuntimeVersion: 1 603 | gcIncremental: 1 604 | assemblyVersionValidation: 1 605 | gcWBarrierValidation: 0 606 | apiCompatibilityLevelPerPlatform: {} 607 | m_RenderingPath: 1 608 | m_MobileRenderingPath: 1 609 | metroPackageName: CosineGradient 610 | metroPackageVersion: 611 | metroCertificatePath: 612 | metroCertificatePassword: 613 | metroCertificateSubject: 614 | metroCertificateIssuer: 615 | metroCertificateNotAfter: 0000000000000000 616 | metroApplicationDescription: CosineGradient 617 | wsaImages: {} 618 | metroTileShortName: 619 | metroTileShowName: 0 620 | metroMediumTileShowName: 0 621 | metroLargeTileShowName: 0 622 | metroWideTileShowName: 0 623 | metroSupportStreamingInstall: 0 624 | metroLastRequiredScene: 0 625 | metroDefaultTileSize: 1 626 | metroTileForegroundText: 2 627 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 628 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 629 | a: 1} 630 | metroSplashScreenUseBackgroundColor: 0 631 | platformCapabilities: {} 632 | metroTargetDeviceFamilies: {} 633 | metroFTAName: 634 | metroFTAFileTypes: [] 635 | metroProtocolName: 636 | vcxProjDefaultLanguage: 637 | XboxOneProductId: 638 | XboxOneUpdateKey: 639 | XboxOneSandboxId: 640 | XboxOneContentId: 641 | XboxOneTitleId: 642 | XboxOneSCId: 643 | XboxOneGameOsOverridePath: 644 | XboxOnePackagingOverridePath: 645 | XboxOneAppManifestOverridePath: 646 | XboxOneVersion: 1.0.0.0 647 | XboxOnePackageEncryption: 0 648 | XboxOnePackageUpdateGranularity: 2 649 | XboxOneDescription: 650 | XboxOneLanguage: 651 | - enus 652 | XboxOneCapability: [] 653 | XboxOneGameRating: {} 654 | XboxOneIsContentPackage: 0 655 | XboxOneEnhancedXboxCompatibilityMode: 0 656 | XboxOneEnableGPUVariability: 0 657 | XboxOneSockets: {} 658 | XboxOneSplashScreen: {fileID: 0} 659 | XboxOneAllowedProductIds: [] 660 | XboxOnePersistentLocalStorageSize: 0 661 | XboxOneXTitleMemory: 8 662 | XboxOneOverrideIdentityName: 663 | XboxOneOverrideIdentityPublisher: 664 | vrEditorSettings: {} 665 | cloudServicesEnabled: {} 666 | luminIcon: 667 | m_Name: 668 | m_ModelFolderPath: 669 | m_PortalFolderPath: 670 | luminCert: 671 | m_CertPath: 672 | m_SignPackage: 1 673 | luminIsChannelApp: 0 674 | luminVersion: 675 | m_VersionCode: 1 676 | m_VersionName: 677 | apiCompatibilityLevel: 6 678 | activeInputHandler: 0 679 | cloudProjectId: 680 | framebufferDepthMemorylessMode: 0 681 | qualitySettingsNames: [] 682 | projectName: 683 | organizationId: 684 | cloudEnabled: 0 685 | legacyClampBlendShapeWeights: 1 686 | playerDataPath: 687 | forceSRGBBlit: 1 688 | virtualTexturingSupportEnabled: 0 689 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.2.17f1 2 | m_EditorVersionWithRevision: 2021.2.17f1 (efb8f635e7b1) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Good 11 | pixelLightCount: 2 12 | shadows: 2 13 | shadowResolution: 1 14 | shadowProjection: 1 15 | shadowCascades: 2 16 | shadowDistance: 40 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 1 21 | skinWeights: 2 22 | textureQuality: 0 23 | anisotropicTextures: 1 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 1 27 | realtimeReflectionProbes: 1 28 | billboardsFaceCameraPosition: 1 29 | vSyncCount: 1 30 | lodBias: 1 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 256 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 4 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | m_PerPlatformDefaultQuality: 46 | Android: 0 47 | Nintendo 3DS: 0 48 | PS4: 0 49 | PSM: 0 50 | PSP2: 0 51 | Samsung TV: 0 52 | Server: 0 53 | Standalone: 0 54 | Tizen: 0 55 | Web: 0 56 | WebGL: 0 57 | WiiU: 0 58 | Windows Store Apps: 0 59 | XboxOne: 0 60 | iPhone: 0 61 | tvOS: 0 62 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | CrashReportingSettings: 11 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 12 | m_Enabled: 0 13 | m_CaptureEditorExceptions: 1 14 | UnityPurchasingSettings: 15 | m_Enabled: 0 16 | m_TestMode: 0 17 | UnityAnalyticsSettings: 18 | m_Enabled: 0 19 | m_InitializeOnStartup: 1 20 | m_TestMode: 0 21 | m_TestEventUrl: 22 | m_TestConfigUrl: 23 | UnityAdsSettings: 24 | m_Enabled: 0 25 | m_InitializeOnStartup: 1 26 | m_TestMode: 0 27 | m_EnabledPlatforms: 4294967295 28 | m_IosGameId: 29 | m_AndroidGameId: 30 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/CosineGradient/0b68b0d3904b938a74529d8a35ed66def6c0664b/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | CosineGradient 2 | ============== 3 | 4 | ![gif](https://i.imgur.com/z0KYTCt.gif) 5 | 6 | **CosineGradient** is a Unity package for generating cosine-based gradients. 7 | 8 | The idea of cosine-based gradients is based on an article written by Íñigo 9 | Quílez. See [the original article] for further details. 10 | 11 | [the original article]: 12 | http://www.iquilezles.org/www/articles/palettes/palettes.htm 13 | 14 | Installation 15 | ------------ 16 | 17 | This package uses the [scoped registry] feature to resolve package 18 | dependencies. Please add the following sections to the manifest file 19 | (Packages/manifest.json). 20 | 21 | [scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html 22 | 23 | To the `scopedRegistries` section: 24 | 25 | ``` 26 | { 27 | "name": "Keijiro", 28 | "url": "https://registry.npmjs.com", 29 | "scopes": [ "jp.keijiro" ] 30 | } 31 | ``` 32 | 33 | To the `dependencies` section: 34 | 35 | ``` 36 | "jp.keijiro.klak.cosinegradient": "1.1.0" 37 | ``` 38 | 39 | After changes, the manifest file should look like below: 40 | 41 | ``` 42 | { 43 | "scopedRegistries": [ 44 | { 45 | "name": "Keijiro", 46 | "url": "https://registry.npmjs.com", 47 | "scopes": [ "jp.keijiro" ] 48 | } 49 | ], 50 | "dependencies": { 51 | "jp.keijiro.klak.cosinegradient": "1.1.0", 52 | ... 53 | ``` 54 | --------------------------------------------------------------------------------