This commit is contained in:
Ferlat Thibaud
2026-05-29 16:01:08 +02:00
15 changed files with 5423 additions and 264 deletions
@@ -0,0 +1,61 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-5747633948245401730
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: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_fog
m_Shader: {fileID: -6465566751694194690, guid: 0f1522c6af8cc4d47a4bbc5401f58523, 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: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- 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:
- _MaskID: 2
- _QueueControl: 0
- _QueueOffset: 0
m_Colors:
- _ColorA: {r: 1.244819, g: 0.500609, b: 0.2289997, a: 1}
- _ColorB: {r: 0.7924528, g: 0.2773978, b: 0.09344961, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7a718279ac49cd84ea2afe0e7a591235
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6c6e37803c0c12643a1318245d7536ec
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,52 @@
#ifndef FOG_INCLUDED
#define FOG_INCLUDED
#include "Assets/_Content/Shaders/Include/Noises.hlsl"
void Fog_float
(
float4 ColorA,
float4 ColorB,
float3 PositionWS,
float3 PositionOS,
float3 PivotWS,
float3 Scale,
out float3 Output,
out float Alpha
)
{
// Test
//float test = ValueNoise3D(PositionWS, 40);
//float test = PerlinNoise3D(PositionWS, 40);
//float test = PerlinNoise3DLOD(PositionWS, 100, 3.5);
//float test = SimplexNoise3D(PositionWS, 40);
//float test = WorleyNoise3D(PositionWS, 40, 1);
//float id;
//float test = VoronoiNoise3D(PositionWS, 10, 1, .05, id);
//float test = FBMNoise3D(PositionWS, 10, 2, 2, .5);
//float test = RidgedNoise3D(PositionWS, 10, 2, 2, .5);
float3 camPos = _WorldSpaceCameraPos.xyz;
float depth = distance(camPos, PositionWS);
float depthAtten = smoothstep(10, 100, depth);
float mask = smoothstep(0, lerp(.3, .1, depthAtten), PositionOS.y) * pow(smoothstep(1, .5, PositionOS.y), 2);
float t = _Time.y * .7;
float s = lerp(Scale.x, 1, .3);
float3 p = PositionWS;// - PivotWS;
p += float3(t, t * .2, t);
p += RidgedNoise3D(p - PivotWS * .9, .1, 3, 1.6, 1) * 3;
float fog = FBMNoise3D((p - PivotWS * .5), 10 / s, 3, 1.5, .5);
float4 col = lerp(ColorA, ColorB, saturate(RidgedNoise3D((p - PivotWS * .7) * float3(1, 1.6, 1), 3 / s, 3, 1.6, 1)));
// Output
Output = col.rgb;
Alpha = lerp(fog, smoothstep(1, .5, PositionOS.y), depthAtten * mask) * lerp(.2, 1, smoothstep(0, 30, depth)) * mask * col.a;
}
#endif
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2743e5676f48592459e53e963742a697
ShaderIncludeImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 0f1522c6af8cc4d47a4bbc5401f58523
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
useAsTemplate: 0
exposeTemplateAsShader: 0
template:
name:
category:
description:
icon: {instanceID: 0}
thumbnail: {instanceID: 0}
@@ -1,5 +1,74 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &220955821978768985
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1285827998720199852}
- component: {fileID: 1521426653995865631}
m_Layer: 21
m_Name: Fog
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1285827998720199852
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 220955821978768985}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 5246754489463669205}
- {fileID: 7347256669240431403}
- {fileID: 122936598391762390}
- {fileID: 3320036598550832547}
- {fileID: 4453494222369485607}
- {fileID: 5839769009767417077}
- {fileID: 3194640396433266390}
- {fileID: 2023719718093741236}
- {fileID: 2574442549426135791}
- {fileID: 5701605688643465525}
m_Father: {fileID: 1381325834594434730}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1773428102 &1521426653995865631
ParentConstraint:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 220955821978768985}
m_Enabled: 1
serializedVersion: 2
m_Weight: 1
m_TranslationAtRest: {x: 0, y: 0, z: 0}
m_RotationAtRest: {x: 0, y: 0, z: 0}
m_TranslationOffsets:
- {x: 0, y: 0, z: 0}
m_RotationOffsets:
- {x: 0, y: 0, z: 0}
m_AffectTranslationX: 1
m_AffectTranslationY: 1
m_AffectTranslationZ: 1
m_AffectRotationX: 1
m_AffectRotationY: 1
m_AffectRotationZ: 1
m_Active: 1
m_IsLocked: 1
m_Sources:
- sourceTransform: {fileID: 0}
weight: 1
--- !u!1 &349322967417954148 --- !u!1 &349322967417954148
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -940,6 +1009,7 @@ Transform:
m_Children: m_Children:
- {fileID: 8594930595872363770} - {fileID: 8594930595872363770}
- {fileID: 1866815096823659602} - {fileID: 1866815096823659602}
- {fileID: 1285827998720199852}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6092940326754491008 --- !u!1 &6092940326754491008
@@ -1182,7 +1252,7 @@ Transform:
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
m_LocalPosition: {x: 0, y: 0.01, z: 19.39} m_LocalPosition: {x: 0, y: 0.01, z: 19.39}
m_LocalScale: {x: 3, y: 3, z: 3} m_LocalScale: {x: 1.5, y: 1.5, z: 1.5}
m_ConstrainProportionsScale: 1 m_ConstrainProportionsScale: 1
m_Children: m_Children:
- {fileID: 904865752352880500} - {fileID: 904865752352880500}
@@ -1375,3 +1445,823 @@ Transform:
- {fileID: 6073949692840273115} - {fileID: 6073949692840273115}
m_Father: {fileID: 904865752352880500} m_Father: {fileID: 904865752352880500}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &449932605634398781
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 24.46808
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 24.46808
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 2
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_02
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &122936598391762390 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 449932605634398781}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1990321800832301919
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 89.137085
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 89.137085
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 7
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_07
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &2023719718093741236 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 1990321800832301919}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2607857578974070020
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 115.92279
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 15.995324
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 115.92279
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 8
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_07 (1)
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &2574442549426135791 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 2607857578974070020}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2997597242171736648
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 31.805193
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 31.805193
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 3
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_03
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &3320036598550832547 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 2997597242171736648}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &3161278443421299005
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 69.047554
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 15.041685
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 69.047554
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 6
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_06
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &3194640396433266390 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 3161278443421299005}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &4199400061159544012
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 40.307537
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 4.3782487
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 40.307537
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 4
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_04
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &4453494222369485607 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 4199400061159544012}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5236161718308951774
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 159.98505
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 159.98505
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 9
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_07 (2)
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &5701605688643465525 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 5236161718308951774}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5718038900406380094
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 14.300449
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 14.300449
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_01
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &5246754489463669205 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 5718038900406380094}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6233473933639213854
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 53.488106
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 53.488106
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 5
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_05
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &5839769009767417077 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 6233473933639213854}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7096558649598768320
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1285827998720199852}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.x
value: 19.237616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 3.2581105
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
value: 19.237616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 7a718279ac49cd84ea2afe0e7a591235, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: Fog_02
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Layer
value: 21
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
--- !u!4 &7347256669240431403 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
m_PrefabInstance: {fileID: 7096558649598768320}
m_PrefabAsset: {fileID: 0}
+5 -1
View File
@@ -273,6 +273,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1521426653995865631, guid: 8fcb6a00123b1844d85f95f9d8abd9cf, type: 3}
propertyPath: m_Sources.Array.data[0].sourceTransform
value:
objectReference: {fileID: 57213872}
- target: {fileID: 5764118255769207510, guid: 8fcb6a00123b1844d85f95f9d8abd9cf, type: 3} - target: {fileID: 5764118255769207510, guid: 8fcb6a00123b1844d85f95f9d8abd9cf, type: 3}
propertyPath: m_Name propertyPath: m_Name
value: OmnissiahEnv value: OmnissiahEnv
@@ -669,7 +673,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!4 &1288571885 --- !u!4 &1288571885
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
+4
View File
@@ -23044,6 +23044,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1521426653995865631, guid: 8fcb6a00123b1844d85f95f9d8abd9cf, type: 3}
propertyPath: m_Sources.Array.data[0].sourceTransform
value:
objectReference: {fileID: 57213872}
- target: {fileID: 5764118255769207510, guid: 8fcb6a00123b1844d85f95f9d8abd9cf, type: 3} - target: {fileID: 5764118255769207510, guid: 8fcb6a00123b1844d85f95f9d8abd9cf, type: 3}
propertyPath: m_Name propertyPath: m_Name
value: OmnissiahEnv value: OmnissiahEnv
@@ -215,6 +215,9 @@
}, },
{ {
"m_Id": "aed770d7b8364459a7bfdfc34cbd2ab8" "m_Id": "aed770d7b8364459a7bfdfc34cbd2ab8"
},
{
"m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
} }
], ],
"m_GroupDatas": [], "m_GroupDatas": [],
@@ -271,11 +274,39 @@
}, },
"m_InputSlot": { "m_InputSlot": {
"m_Node": { "m_Node": {
"m_Id": "c5d342277052409f87283f2c60ccf3a1" "m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
}, },
"m_SlotId": 13 "m_SlotId": 13
} }
}, },
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
},
"m_SlotId": 15
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1035dda04278422b988336d6984e2045"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "3e46eb76f3e94a73912aecb313b485e5"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
},
"m_SlotId": 18
}
},
{ {
"m_OutputSlot": { "m_OutputSlot": {
"m_Node": { "m_Node": {
@@ -383,7 +414,7 @@
}, },
"m_InputSlot": { "m_InputSlot": {
"m_Node": { "m_Node": {
"m_Id": "c5d342277052409f87283f2c60ccf3a1" "m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
}, },
"m_SlotId": 16 "m_SlotId": 16
} }
@@ -397,7 +428,7 @@
}, },
"m_InputSlot": { "m_InputSlot": {
"m_Node": { "m_Node": {
"m_Id": "c5d342277052409f87283f2c60ccf3a1" "m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
}, },
"m_SlotId": 17 "m_SlotId": 17
} }
@@ -481,7 +512,7 @@
}, },
"m_InputSlot": { "m_InputSlot": {
"m_Node": { "m_Node": {
"m_Id": "c5d342277052409f87283f2c60ccf3a1" "m_Id": "2f58e7c00b5c4814b4a3d8c13322694d"
}, },
"m_SlotId": 14 "m_SlotId": 14
} }
@@ -528,20 +559,6 @@
"m_SlotId": 0 "m_SlotId": 0
} }
}, },
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c5d342277052409f87283f2c60ccf3a1"
},
"m_SlotId": 15
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1035dda04278422b988336d6984e2045"
},
"m_SlotId": 0
}
},
{ {
"m_OutputSlot": { "m_OutputSlot": {
"m_Node": { "m_Node": {
@@ -836,6 +853,22 @@
"m_LiteralMode": false "m_LiteralMode": false
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "04f9be2a155a4360a9351c1e284fa94b",
"m_Id": 15,
"m_DisplayName": "Alpha",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
@@ -1191,9 +1224,9 @@
"m_Expanded": true, "m_Expanded": true,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 596.0, "x": 845.0,
"y": 1187.0, "y": 1202.0,
"width": 110.0, "width": 116.0,
"height": 34.0 "height": 34.0
} }
}, },
@@ -1413,6 +1446,62 @@
} }
} }
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "2f58e7c00b5c4814b4a3d8c13322694d",
"m_Group": {
"m_Id": ""
},
"m_Name": "Mask (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 1002.0,
"y": 1119.0,
"width": 185.0,
"height": 190.0
}
},
"m_Slots": [
{
"m_Id": "c0c268cf854445c3a84028f37581f005"
},
{
"m_Id": "edda2fdb41e64d0d963b57e37eb02902"
},
{
"m_Id": "fafb345f71e44af2a725314204a0d6aa"
},
{
"m_Id": "945c2be648d84367930876227e5c006c"
},
{
"m_Id": "84e8c256f41d4dc5be903041907679c3"
},
{
"m_Id": "04f9be2a155a4360a9351c1e284fa94b"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "Mask",
"m_FunctionSource": "2f64e213049952b44ac4bed6f62cafda",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "Enter function body here..."
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData", "m_Type": "UnityEditor.ShaderGraph.CategoryData",
@@ -1580,7 +1669,7 @@
"m_Expanded": true, "m_Expanded": true,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 411.0, "x": 410.0,
"y": 443.0, "y": 443.0,
"width": 206.0, "width": 206.0,
"height": 130.0 "height": 130.0
@@ -1803,22 +1892,6 @@
} }
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "45ccaed6d4d547b090b274a4421169f6",
"m_Id": 15,
"m_DisplayName": "Alpha",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{ {
"m_SGVersion": 1, "m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty", "m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty",
@@ -2674,8 +2747,8 @@
"m_Expanded": true, "m_Expanded": true,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 595.9999389648438, "x": 845.0,
"y": 1220.9998779296875, "y": 1236.0,
"width": 115.0, "width": 115.0,
"height": 34.0 "height": 34.0
} }
@@ -2825,8 +2898,8 @@
"m_Expanded": true, "m_Expanded": true,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 594.9999389648438, "x": 844.0,
"y": 1254.9998779296875, "y": 1270.0,
"width": 116.0, "width": 116.0,
"height": 34.0 "height": 34.0
} }
@@ -2977,6 +3050,54 @@
} }
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
"m_ObjectId": "84e8c256f41d4dc5be903041907679c3",
"m_Id": 17,
"m_DisplayName": "Mask2",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Mask2",
"m_StageCapability": 3,
"m_Value": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode", "m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
@@ -3034,22 +3155,6 @@
"m_DefaultValue": false "m_DefaultValue": false
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "8892c2b112c14c028eddce5e899710b2",
"m_Id": 14,
"m_DisplayName": "MaskID",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "MaskID",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{ {
"m_SGVersion": 1, "m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
@@ -3312,7 +3417,7 @@
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot", "m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
"m_ObjectId": "92ea1472d59d4857abd59195ace147a4", "m_ObjectId": "945c2be648d84367930876227e5c006c",
"m_Id": 16, "m_Id": 16,
"m_DisplayName": "Mask1", "m_DisplayName": "Mask1",
"m_SlotType": 0, "m_SlotType": 0,
@@ -3616,54 +3721,6 @@
"m_LiteralMode": false "m_LiteralMode": false
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
"m_ObjectId": "a363c8f5686c459792f7e2c53fb8dc8a",
"m_Id": 17,
"m_DisplayName": "Mask2",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Mask2",
"m_StageCapability": 3,
"m_Value": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode", "m_Type": "UnityEditor.ShaderGraph.PropertyNode",
@@ -3762,8 +3819,8 @@
"m_Expanded": true, "m_Expanded": true,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 592.0, "x": 841.0,
"y": 1153.0, "y": 1168.0,
"width": 114.0, "width": 114.0,
"height": 34.0 "height": 34.0
} }
@@ -3945,6 +4002,29 @@
"m_Labels": [] "m_Labels": []
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "c0c268cf854445c3a84028f37581f005",
"m_Id": 18,
"m_DisplayName": "New",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "New",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{ {
"m_SGVersion": 1, "m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty", "m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty",
@@ -4106,23 +4186,8 @@
{ {
"m_Id": "8c26652d47d64417a9ce7a93bb811466" "m_Id": "8c26652d47d64417a9ce7a93bb811466"
}, },
{
"m_Id": "8892c2b112c14c028eddce5e899710b2"
},
{
"m_Id": "fdc7026b3c2f43f9af9342c37132e6cc"
},
{
"m_Id": "92ea1472d59d4857abd59195ace147a4"
},
{
"m_Id": "a363c8f5686c459792f7e2c53fb8dc8a"
},
{ {
"m_Id": "8ead54ba7a8d487ea3f55e930101215f" "m_Id": "8ead54ba7a8d487ea3f55e930101215f"
},
{
"m_Id": "45ccaed6d4d547b090b274a4421169f6"
} }
], ],
"synonyms": [ "synonyms": [
@@ -4837,6 +4902,22 @@
"m_Space": 2 "m_Space": 2
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "edda2fdb41e64d0d963b57e37eb02902",
"m_Id": 14,
"m_DisplayName": "MaskID",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "MaskID",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{ {
"m_SGVersion": 1, "m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty", "m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty",
@@ -5072,34 +5153,10 @@
"m_ColorMode": 0 "m_ColorMode": 0
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
"m_ObjectId": "fb84ed33198947c792183c161d398299",
"m_Id": 0,
"m_DisplayName": "Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Position",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 0
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot", "m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
"m_ObjectId": "fdc7026b3c2f43f9af9342c37132e6cc", "m_ObjectId": "fafb345f71e44af2a725314204a0d6aa",
"m_Id": 13, "m_Id": 13,
"m_DisplayName": "Mask0", "m_DisplayName": "Mask0",
"m_SlotType": 0, "m_SlotType": 0,
@@ -5144,6 +5201,30 @@
} }
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
"m_ObjectId": "fb84ed33198947c792183c161d398299",
"m_Id": 0,
"m_DisplayName": "Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Position",
"m_StageCapability": 1,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 0
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
@@ -220,80 +220,6 @@ float WorldDistort(float3 PositionWS, float3 NormalWS, float Angle, float Tripla
return stripes; return stripes;
} }
float ProjectionMask(
float3 PositionWS,
float3 CamPositionWS,
float3 RectPositionWS,
float3 RectNormalWS,
float3 RectUpWS,
float2 RectSize,
float Oval)
{
// Build the rectangle local frame
float3 N = normalize(RectNormalWS);
float3 U = normalize(RectUpWS);
float3 R = normalize(cross(N, U)); // Right axis
U = normalize(cross(R, N)); // Recompute Up orthogonally in case RectUpWS is not perfectly perpendicular to RectNormalWS
// Ray from camera toward the fragment
float3 rayDir = normalize(PositionWS - CamPositionWS);
// Ray-plane intersection
// Plane equation: dot(P - RectPositionWS, N) = 0
float denom = dot(rayDir, N);
// Ray is parallel to the plane or facing away — no hit
if (abs(denom) < 1e-6)
return 0;
float t = dot(RectPositionWS - CamPositionWS, N) / denom;
// Intersection must be in front of the camera (t > 0)
// and not beyond the fragment (t <= distance from camera to fragment)
float tFrag = dot(PositionWS - CamPositionWS, rayDir);
if (t < 0.0 || t > tFrag + 1e-4)
return 0;
// Compute the hit point on the plane
float3 hitPoint = CamPositionWS + rayDir * t;
// Project hit point into the rectangle local space
float3 localVec = hitPoint - RectPositionWS;
float localU = dot(localVec, R); // horizontal axis
float localV = dot(localVec, U); // vertical axis
float halfW = RectSize.x * 0.5;
float halfH = RectSize.y * 0.5;
// Corner radius: 0 = rectangle, min(halfW, halfH) = oval
float radius = saturate(Oval) * min(halfW, halfH);
// Rounded rectangle SDF
float2 uv = float2(localU, localV);
float2 ext = float2(halfW, halfH);
float2 q = abs(uv) - ext + radius;
float sdf = length(max(q, 0.0)) - radius;
return sdf <= 0.0 ? 1.0 : 0.0;
}
float SampleProjectionMask(float3 PositionWS, float4x4 M)
{
if (M[0].w == 0)
return 0;
return ProjectionMask(
PositionWS,
M[0].xyz, // CamPositionWS
M[1].xyz, // RectPositionWS
M[3].xyz, // RectNormalWS
M[2].xyz, // RectUpWS
float2(M[2].w, M[3].w), // RectSize
M[1].w // Shape
);
}
void EnkiBillal_float void EnkiBillal_float
( (
float4 Color, float4 Color,
@@ -308,12 +234,7 @@ void EnkiBillal_float
float StripesWidth, float StripesWidth,
float StripesSmooth, float StripesSmooth,
int Step, int Step,
float MaskID, out float3 Output
float4x4 Mask0,
float4x4 Mask1,
float4x4 Mask2,
out float3 Output,
out float Alpha
) )
{ {
float3 scaledPositionOS = PositionOS * ObjectScale; float3 scaledPositionOS = PositionOS * ObjectScale;
@@ -384,38 +305,6 @@ void EnkiBillal_float
//Output = PerlinColor3D(PositionWS, 5); //Output = PerlinColor3D(PositionWS, 5);
//Output = smoothstep(.97, .93, ao); //Output = smoothstep(.97, .93, ao);
// Mask
if (Mask2[0].w == 1)
{
float mask = SampleProjectionMask(PositionWS, Mask2);
Alpha = (MaskID <= 1) ? 1 - mask : mask;
}
else if (MaskID == 0)
{
Alpha = 1;
}
else
{
float Active = Mask0[0].w + Mask1[0].w; // + Mask2[0].w;
if (Active > 0)
{
float mask = saturate(
SampleProjectionMask(PositionWS, Mask0) +
SampleProjectionMask(PositionWS, Mask1) // +
//SampleProjectionMask(PositionWS, Mask2)
);
Alpha = (MaskID == 1) ? 1 - mask : mask;
}
else
{
Alpha = (MaskID == 1) ? 0 : 1;
}
}
} }
#endif #endif
@@ -0,0 +1,120 @@
#ifndef MASK_INCLUDED
#define MASK_INCLUDED
float ProjectionMask(
float3 PositionWS,
float3 CamPositionWS,
float3 RectPositionWS,
float3 RectNormalWS,
float3 RectUpWS,
float2 RectSize,
float Oval)
{
// Build the rectangle local frame
float3 N = normalize(RectNormalWS);
float3 U = normalize(RectUpWS);
float3 R = normalize(cross(N, U)); // Right axis
U = normalize(cross(R, N)); // Recompute Up orthogonally in case RectUpWS is not perfectly perpendicular to RectNormalWS
// Ray from camera toward the fragment
float3 rayDir = normalize(PositionWS - CamPositionWS);
// Ray-plane intersection
// Plane equation: dot(P - RectPositionWS, N) = 0
float denom = dot(rayDir, N);
// Ray is parallel to the plane or facing away — no hit
if (abs(denom) < 1e-6)
return 0;
float t = dot(RectPositionWS - CamPositionWS, N) / denom;
// Intersection must be in front of the camera (t > 0)
// and not beyond the fragment (t <= distance from camera to fragment)
float tFrag = dot(PositionWS - CamPositionWS, rayDir);
if (t < 0.0 || t > tFrag + 1e-4)
return 0;
// Compute the hit point on the plane
float3 hitPoint = CamPositionWS + rayDir * t;
// Project hit point into the rectangle local space
float3 localVec = hitPoint - RectPositionWS;
float localU = dot(localVec, R); // horizontal axis
float localV = dot(localVec, U); // vertical axis
float halfW = RectSize.x * 0.5;
float halfH = RectSize.y * 0.5;
// Corner radius: 0 = rectangle, min(halfW, halfH) = oval
float radius = saturate(Oval) * min(halfW, halfH);
// Rounded rectangle SDF
float2 uv = float2(localU, localV);
float2 ext = float2(halfW, halfH);
float2 q = abs(uv) - ext + radius;
float sdf = length(max(q, 0.0)) - radius;
return sdf <= 0.0 ? 1.0 : 0.0;
}
float SampleProjectionMask(float3 PositionWS, float4x4 M)
{
if (M[0].w == 0)
return 0;
return ProjectionMask(
PositionWS,
M[0].xyz, // CamPositionWS
M[1].xyz, // RectPositionWS
M[3].xyz, // RectNormalWS
M[2].xyz, // RectUpWS
float2(M[2].w, M[3].w), // RectSize
M[1].w // Shape
);
}
void Mask_float
(
float3 PositionWS,
float MaskID,
float4x4 Mask0,
float4x4 Mask1,
float4x4 Mask2,
out float Alpha
)
{
Alpha = 1;
if (Mask2[0].w == 1)
{
float mask = SampleProjectionMask(PositionWS, Mask2);
Alpha = (MaskID <= 1) ? 1 - mask : mask;
}
else if (MaskID == 0)
{
Alpha = 1;
}
else
{
float Active = Mask0[0].w + Mask1[0].w; // + Mask2[0].w;
if (Active > 0)
{
float mask = saturate(
SampleProjectionMask(PositionWS, Mask0) +
SampleProjectionMask(PositionWS, Mask1) // +
//SampleProjectionMask(PositionWS, Mask2)
);
Alpha = (MaskID == 1) ? 1 - mask : mask;
}
else
{
Alpha = (MaskID == 1) ? 0 : 1;
}
}
}
#endif
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2f64e213049952b44ac4bed6f62cafda
ShaderIncludeImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: