parent
c8e813ae70
commit
c0c267339d
22 changed files with 9156 additions and 36 deletions
@ -0,0 +1,150 @@ |
||||
%YAML 1.1 |
||||
%TAG !u! tag:unity3d.com,2011: |
||||
--- !u!21 &2100000 |
||||
Material: |
||||
serializedVersion: 8 |
||||
m_ObjectHideFlags: 0 |
||||
m_CorrespondingSourceObject: {fileID: 0} |
||||
m_PrefabInstance: {fileID: 0} |
||||
m_PrefabAsset: {fileID: 0} |
||||
m_Name: Skybox |
||||
m_Shader: {fileID: 108, guid: 0000000000000000f000000000000000, type: 0} |
||||
m_Parent: {fileID: 0} |
||||
m_ModifiedSerializedProperties: 0 |
||||
m_ValidKeywords: [] |
||||
m_InvalidKeywords: |
||||
- _MAPPING_LATITUDE_LONGITUDE_LAYOUT |
||||
- _SUNDISK_HIGH_QUALITY |
||||
m_LightmapFlags: 4 |
||||
m_EnableInstancingVariants: 0 |
||||
m_DoubleSidedGI: 0 |
||||
m_CustomRenderQueue: -1 |
||||
stringTagMap: {} |
||||
disabledShaderPasses: |
||||
- MOTIONVECTORS |
||||
m_LockedProperties: |
||||
m_SavedProperties: |
||||
serializedVersion: 3 |
||||
m_TexEnvs: |
||||
- _BaseMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _BumpMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _DetailAlbedoMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _DetailMask: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _DetailNormalMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _EmissionMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _MainTex: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _MetallicGlossMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _OcclusionMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _ParallaxMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _SpecGlossMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- unity_Lightmaps: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- unity_LightmapsInd: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- unity_ShadowMasks: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
m_Ints: [] |
||||
m_Floats: |
||||
- _AddPrecomputedVelocity: 0 |
||||
- _AlphaClip: 0 |
||||
- _AlphaToMask: 0 |
||||
- _AtmosphereThickness: 1 |
||||
- _Blend: 0 |
||||
- _BlendModePreserveSpecular: 1 |
||||
- _BumpScale: 1 |
||||
- _ClearCoatMask: 0 |
||||
- _ClearCoatSmoothness: 0 |
||||
- _Cull: 2 |
||||
- _Cutoff: 0.5 |
||||
- _DetailAlbedoMapScale: 1 |
||||
- _DetailNormalMapScale: 1 |
||||
- _DstBlend: 0 |
||||
- _DstBlendAlpha: 0 |
||||
- _EnvironmentReflections: 1 |
||||
- _Exposure: 1.3 |
||||
- _GlossMapScale: 0 |
||||
- _Glossiness: 0 |
||||
- _GlossyReflections: 0 |
||||
- _ImageType: 0 |
||||
- _Layout: 0 |
||||
- _Mapping: 1 |
||||
- _Metallic: 0 |
||||
- _MirrorOnBack: 0 |
||||
- _OcclusionStrength: 1 |
||||
- _Parallax: 0.005 |
||||
- _QueueOffset: 0 |
||||
- _ReceiveShadows: 1 |
||||
- _Rotation: 0 |
||||
- _Smoothness: 0.5 |
||||
- _SmoothnessTextureChannel: 0 |
||||
- _SpecularHighlights: 1 |
||||
- _SrcBlend: 1 |
||||
- _SrcBlendAlpha: 1 |
||||
- _SunDisk: 2 |
||||
- _SunSize: 0.04 |
||||
- _SunSizeConvergence: 5 |
||||
- _Surface: 0 |
||||
- _WorkflowMode: 1 |
||||
- _ZWrite: 1 |
||||
m_Colors: |
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1} |
||||
- _Color: {r: 1, g: 1, b: 1, a: 1} |
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
||||
- _GroundColor: {r: 0.36899996, g: 0.34899998, b: 0.34099993, a: 1} |
||||
- _SkyTint: {r: 0.5, g: 0.5, b: 0.5, a: 1} |
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} |
||||
- _Tint: {r: 0.1, g: 0.1, b: 0.1, a: 0.5} |
||||
m_BuildTextureStacks: [] |
||||
m_AllowLocking: 1 |
||||
--- !u!114 &5365457245102889590 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 11 |
||||
m_CorrespondingSourceObject: {fileID: 0} |
||||
m_PrefabInstance: {fileID: 0} |
||||
m_PrefabAsset: {fileID: 0} |
||||
m_GameObject: {fileID: 0} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
version: 9 |
||||
@ -0,0 +1,8 @@ |
||||
fileFormatVersion: 2 |
||||
guid: c32a369c4f0f8874e9d73cf16d086cad |
||||
NativeFormatImporter: |
||||
externalObjects: {} |
||||
mainObjectFileID: 2100000 |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
||||
@ -0,0 +1,136 @@ |
||||
%YAML 1.1 |
||||
%TAG !u! tag:unity3d.com,2011: |
||||
--- !u!114 &-1389300407495691569 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 11 |
||||
m_CorrespondingSourceObject: {fileID: 0} |
||||
m_PrefabInstance: {fileID: 0} |
||||
m_PrefabAsset: {fileID: 0} |
||||
m_GameObject: {fileID: 0} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
version: 9 |
||||
--- !u!21 &2100000 |
||||
Material: |
||||
serializedVersion: 8 |
||||
m_ObjectHideFlags: 0 |
||||
m_CorrespondingSourceObject: {fileID: 0} |
||||
m_PrefabInstance: {fileID: 0} |
||||
m_PrefabAsset: {fileID: 0} |
||||
m_Name: New Material 1 |
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} |
||||
m_Parent: {fileID: 0} |
||||
m_ModifiedSerializedProperties: 0 |
||||
m_ValidKeywords: [] |
||||
m_InvalidKeywords: [] |
||||
m_LightmapFlags: 4 |
||||
m_EnableInstancingVariants: 0 |
||||
m_DoubleSidedGI: 0 |
||||
m_CustomRenderQueue: -1 |
||||
stringTagMap: |
||||
RenderType: Opaque |
||||
disabledShaderPasses: |
||||
- MOTIONVECTORS |
||||
m_LockedProperties: |
||||
m_SavedProperties: |
||||
serializedVersion: 3 |
||||
m_TexEnvs: |
||||
- _BaseMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _BumpMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _DetailAlbedoMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _DetailMask: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _DetailNormalMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _EmissionMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _MainTex: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _MetallicGlossMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _OcclusionMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _ParallaxMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- _SpecGlossMap: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- unity_Lightmaps: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- unity_LightmapsInd: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
- unity_ShadowMasks: |
||||
m_Texture: {fileID: 0} |
||||
m_Scale: {x: 1, y: 1} |
||||
m_Offset: {x: 0, y: 0} |
||||
m_Ints: [] |
||||
m_Floats: |
||||
- _AddPrecomputedVelocity: 0 |
||||
- _AlphaClip: 0 |
||||
- _AlphaToMask: 0 |
||||
- _Blend: 0 |
||||
- _BlendModePreserveSpecular: 1 |
||||
- _BumpScale: 1 |
||||
- _ClearCoatMask: 0 |
||||
- _ClearCoatSmoothness: 0 |
||||
- _Cull: 2 |
||||
- _Cutoff: 0.5 |
||||
- _DetailAlbedoMapScale: 1 |
||||
- _DetailNormalMapScale: 1 |
||||
- _DstBlend: 0 |
||||
- _DstBlendAlpha: 0 |
||||
- _EnvironmentReflections: 1 |
||||
- _GlossMapScale: 0 |
||||
- _Glossiness: 0 |
||||
- _GlossyReflections: 0 |
||||
- _Metallic: 0.879 |
||||
- _OcclusionStrength: 1 |
||||
- _Parallax: 0.005 |
||||
- _QueueOffset: 0 |
||||
- _ReceiveShadows: 1 |
||||
- _Smoothness: 0.407 |
||||
- _SmoothnessTextureChannel: 0 |
||||
- _SpecularHighlights: 1 |
||||
- _SrcBlend: 1 |
||||
- _SrcBlendAlpha: 1 |
||||
- _Surface: 0 |
||||
- _WorkflowMode: 1 |
||||
- _ZWrite: 1 |
||||
m_Colors: |
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1} |
||||
- _Color: {r: 1, g: 1, b: 1, a: 1} |
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} |
||||
m_BuildTextureStacks: [] |
||||
m_AllowLocking: 1 |
||||
@ -0,0 +1,8 @@ |
||||
fileFormatVersion: 2 |
||||
guid: f2da2eb3d9933114aacc2ae12696b826 |
||||
NativeFormatImporter: |
||||
externalObjects: {} |
||||
mainObjectFileID: 2100000 |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,14 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 4f35392b7c1a72e4f956e3e62a1935e4 |
||||
VisualEffectImporter: |
||||
externalObjects: {} |
||||
serializedVersion: 1 |
||||
template: |
||||
name: |
||||
category: |
||||
description: |
||||
icon: {instanceID: 0} |
||||
thumbnail: {instanceID: 0} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
||||
@ -0,0 +1,8 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 5124c4bb357d31b4e99a71b428e0d8a9 |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,10 @@ |
||||
fileFormatVersion: 2 |
||||
guid: f54a2122e01a57f43b78042b1bf343cb |
||||
ScriptedImporter: |
||||
internalIDToNameTable: [] |
||||
externalObjects: {} |
||||
serializedVersion: 2 |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
||||
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} |
||||
@ -0,0 +1,27 @@ |
||||
void PolygonEdgeDistance_float(float2 P, float n, out float distance) { |
||||
float R = 0.5; |
||||
float TAU = 2.0 * 3.14159265359; |
||||
n = round(n); |
||||
|
||||
float rP = length(P); |
||||
float thetaP = atan2(P.y, P.x); |
||||
thetaP = fmod(thetaP + TAU, TAU); |
||||
|
||||
float angleStep = TAU / n; |
||||
|
||||
int k = int(floor(thetaP / angleStep)) % int(n); |
||||
float theta_k = k * angleStep; |
||||
|
||||
float2 p1 = R * float2(cos(theta_k), sin(theta_k)); |
||||
float2 p2 = R * float2(cos(theta_k + angleStep), sin(theta_k + angleStep)); |
||||
|
||||
float2 edgeDir = p2 - p1; |
||||
float2 toP = P - p1; |
||||
float edgeLength = length(edgeDir); |
||||
|
||||
float t = dot(toP, edgeDir) / (edgeLength * edgeLength); |
||||
t = saturate(t); |
||||
|
||||
float2 closestPoint = p1 + t * edgeDir; |
||||
distance = length(P - closestPoint); |
||||
} |
||||
@ -0,0 +1,7 @@ |
||||
fileFormatVersion: 2 |
||||
guid: 878855eba61f4744d86eef12c1fc8796 |
||||
ShaderIncludeImporter: |
||||
externalObjects: {} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
||||
Reference in new issue