add : deployed uvs for theater & fix sam fog

This commit is contained in:
Ferlat Thibaud
2026-06-15 19:47:26 +02:00
parent e41716af4c
commit 6cff4595e1
27 changed files with 1096 additions and 214 deletions
@@ -128,7 +128,7 @@ Material:
- _ZWrite: 0
m_Colors:
- _BASE_COLOR: {r: 0.90239406, g: 0.10204049, b: 0.025944788, a: 1}
- _BaseColor: {r: 2.9960787, g: 0, b: 0, a: 1}
- _BaseColor: {r: 0.7490197, g: 0, b: 0, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EMISSION_COLOR: {r: 0.09756098, g: 0.018807964, b: 0.007915979, a: 0.44444445}
- _EmissionColor: {r: 0.09756098, g: 0.018807964, b: 0.007915979, a: 0.44444445}
@@ -42,8 +42,8 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Texture: {fileID: 2800000, guid: 685dc68ea5e3299409a99c93e0898aac, type: 3}
m_Scale: {x: 5, y: 5}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
@@ -146,7 +146,7 @@ Material:
- _ZWrite: 0
m_Colors:
- _BASE_COLOR: {r: 0.1097561, g: 0.1097561, b: 0.1097561, a: 1}
- _BaseColor: {r: 0, g: 0, b: 0, a: 1}
- _BaseColor: {r: 0.21698111, g: 0.21698111, b: 0.21698111, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EMISSION_COLOR: {r: 0, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
@@ -0,0 +1,152 @@
%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: M_metalBlue
m_Shader: {fileID: -6465566751694194690, guid: 10840deb9abeee9478cbbb5915f60f5c, 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:
- _BaseMap:
m_Texture: {fileID: 2800000, guid: 685dc68ea5e3299409a99c93e0898aac, type: 3}
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}
- _DetailMap:
m_Texture: {fileID: 2800000, guid: 2da59fbd756c92a4bb2018abf06c4e07, type: 3}
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
- _DetailSize: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _FogMax: 15
- _FogMin: 0
- _FogUse: 0
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _MaskID: 0
- _Metallic: 0
- _NormaStrength: 1
- _OcclusionStrength: 1
- _Parallax: 0.005
- _ProjectionBlend: 0.1
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Step: 6
- _Surface: 0
- _Test: 0
- _VertexColor: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 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}
- _FogColor: {r: 0.9921569, g: 0.6392157, b: 0.4117647, a: 0.3529412}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &8696155298180185195
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
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1b60caa6106d33b41a94a067284dda29
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 911140758a763a0419a7a5c2b388b953
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: f166d0c9a5f6d154badd1ba9138f9a9d
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: e6c2bb6fb80e29042b11385c7dd6ceab
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: ba4eb97f2b31ad3429c232fbe9fd64da
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: b5202d3fd0960b449a0b90a32606091d
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -52,6 +52,7 @@ Material:
m_Ints: []
m_Floats:
- _DepthAtten: 1
- _FogStartTime: 0
- _GrainAmount: 0.05
- _IntersectionAtten: 10
- _MaskID: 0
@@ -59,9 +60,9 @@ Material:
- _QueueControl: 0
- _QueueOffset: 0
- _SpikeAmount: 2
- _SpikeScale: 3
- _SpikeSpeed: -2
- _SpikeTilt: 50
- _SpikeScale: 2
- _SpikeSpeed: 0.5
- _SpikeTilt: 30
m_Colors:
- _ColorA: {r: 0.8301887, g: 0.105731584, b: 0.105731584, a: 1}
- _ColorB: {r: 0, g: 0, b: 0, a: 1}
@@ -0,0 +1,46 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-5376756454538289968
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_Scarecrow Variant
m_Shader: {fileID: -6465566751694194690, guid: 0f1522c6af8cc4d47a4bbc5401f58523, type: 3}
m_Parent: {fileID: 2100000, guid: 117e9e9e3329f314aaaf2742287b0591, type: 2}
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: []
m_Ints: []
m_Floats: []
m_Colors:
- _ColorA: {r: 0.8301887, g: 0.4738341, b: 0.7347755, a: 0.43137255}
- _ColorB: {r: 0.3679245, g: 0.15792987, b: 0.30295476, a: 0.50980395}
m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 72c764e7fc07bd64dbc879f342f4ed5e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -20,6 +20,7 @@ void Fog_float
float SpikeSpeed,
float PaintSteps,
float GrainAmount,
float FogStartTime,
out float3 Output,
out float Alpha
)
@@ -28,7 +29,9 @@ void Fog_float
float depth = distance(camPos, PositionWS);
float depthAtten = lerp(1, smoothstep(5, 30, depth), DepthAtten);
float t = _Time.y * .7;
float t = (_Time.y - FogStartTime) * .7;
float s = lerp(Scale.x, 1, .3);
// Base sampling position, scrolling over time
@@ -50,6 +50,9 @@
},
{
"m_Id": "30b6d5822ed140f286d044aad95b4692"
},
{
"m_Id": "0a505f19b2154fa18a76ff4be11b54c2"
}
],
"m_Keywords": [],
@@ -179,6 +182,9 @@
},
{
"m_Id": "49b42d33148e41cd9956d11fe5a3e6c8"
},
{
"m_Id": "a4c6c063d67e41c7849bcba609c723b3"
}
],
"m_GroupDatas": [],
@@ -520,6 +526,20 @@
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a4c6c063d67e41c7849bcba609c723b3"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "cd9b6500316e4beabbb4e8a42c14ce9d"
},
"m_SlotId": 17
}
},
{
"m_OutputSlot": {
"m_Node": {
@@ -705,8 +725,8 @@
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
"x": 0.00002562999725341797,
"y": -30.99998664855957
},
"m_Blocks": [
{
@@ -1012,6 +1032,50 @@
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "0a505f19b2154fa18a76ff4be11b54c2",
"m_Guid": {
"m_GuidSerialized": "aeb17752-ea5d-4749-a30f-a0597886b68f"
},
"promotedFromAssetID": "",
"promotedFromCategoryName": "",
"promotedOrdering": -1,
"m_Name": "FogStartTime",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "FogStartTime",
"m_DefaultReferenceName": "_FogStartTime",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": 0.0,
"m_FloatType": 0,
"m_LiteralFloatMode": false,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
},
"m_SliderType": 0,
"m_SliderPower": 3.0,
"m_EnumType": 0,
"m_CSharpEnumString": "",
"m_EnumNames": [
"Default"
],
"m_EnumValues": [
0
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
@@ -2206,6 +2270,22 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "4d6cc0e11c05499bb28392f1175b2b3f",
"m_Id": 17,
"m_DisplayName": "FogStartTime",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "FogStartTime",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
@@ -3336,6 +3416,9 @@
},
{
"m_Id": "d45fe3dfb3ac4a6791b106ac03552c74"
},
{
"m_Id": "0a505f19b2154fa18a76ff4be11b54c2"
}
]
}
@@ -3473,6 +3556,22 @@
"m_SerializedDescriptor": "VertexDescription.Tangent"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "8e4f5e366d4c4221bd9dff96ec672dd6",
"m_Id": 0,
"m_DisplayName": "FogStartTime",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.ShaderGraph.TransformNode",
@@ -3832,6 +3931,42 @@
"m_DepthSamplingMode": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "a4c6c063d67e41c7849bcba609c723b3",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -663.7021484375,
"y": 973.1943969726563,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "8e4f5e366d4c4221bd9dff96ec672dd6"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "0a505f19b2154fa18a76ff4be11b54c2"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
@@ -4823,6 +4958,9 @@
{
"m_Id": "6e1e2ffcb5794bbaa6262156e175e539"
},
{
"m_Id": "4d6cc0e11c05499bb28392f1175b2b3f"
},
{
"m_Id": "5ba5e0c48f2945efbada98663c457b7b"
},
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -295,7 +295,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 314}
m_AnchoredPosition: {x: 0, y: 327}
m_SizeDelta: {x: 800, y: 2}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &74466215
@@ -608,7 +608,7 @@ MonoBehaviour:
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: -27.191696, z: 0, w: 971.9161}
m_margin: {x: 0, y: 31.721138, z: 0, w: 971.9161}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
@@ -1063,7 +1063,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1600, y: 200}
m_SizeDelta: {x: 1600, y: 424.555}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &718475358
MonoBehaviour:
@@ -1153,7 +1153,7 @@ MonoBehaviour:
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: -313.51407, z: 0, w: 971.9161}
m_margin: {x: 0, y: -313.51407, z: 0, w: 1074.646}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
+31 -18
View File
@@ -743,7 +743,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 5.4392014
value: 2.376931
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
@@ -751,11 +751,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0.5086
value: -0.0499
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
@@ -796,14 +796,14 @@ PrefabInstance:
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 41ae4584339083a4bba3b73730fb8511, type: 2}
objectReference: {fileID: 2100000, guid: 72c764e7fc07bd64dbc879f342f4ed5e, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: fogA
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
@@ -914,6 +914,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 361548544}
- component: {fileID: 361548545}
m_Layer: 0
m_Name: fog
m_TagString: Untagged
@@ -942,6 +943,18 @@ Transform:
- {fileID: 1512346248}
m_Father: {fileID: 1006786542}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &361548545
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 361548543}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86ca9ade4ca92524b8d44453ce5b01ac, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::InitShader
--- !u!1 &370489300
GameObject:
m_ObjectHideFlags: 0
@@ -3035,7 +3048,7 @@ MonoBehaviour:
_tolerance: 0.5
_duration: 1
_execution: 1
_delay: 14.8
_delay: 16
_onTrigger:
m_PersistentCalls:
m_Calls: []
@@ -5959,7 +5972,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 4.8553214
value: 2.1217754
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
@@ -5967,11 +5980,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: -0.4867
value: -0.4849
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
@@ -6012,14 +6025,14 @@ PrefabInstance:
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 41ae4584339083a4bba3b73730fb8511, type: 2}
objectReference: {fileID: 2100000, guid: 72c764e7fc07bd64dbc879f342f4ed5e, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: fogC
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
@@ -6722,7 +6735,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 5.4392014
value: 2.376931
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
@@ -6730,11 +6743,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: -0.0354
value: -0.2876
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
@@ -6775,14 +6788,14 @@ PrefabInstance:
- target: {fileID: -7511558181221131132, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: 41ae4584339083a4bba3b73730fb8511, type: 2}
objectReference: {fileID: 2100000, guid: 72c764e7fc07bd64dbc879f342f4ed5e, type: 2}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_Name
value: fogB
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
@@ -6930,7 +6943,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.y
value: 20.168636
value: 70
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalScale.z
@@ -6942,7 +6955,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: 0.0009
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 4ff3091676a78724ca2ae5d60353d400, type: 3}
propertyPath: m_LocalPosition.z
+30 -2
View File
@@ -16980,7 +16980,7 @@ MeshFilter:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 794689836}
m_Mesh: {fileID: -3487785084920393988, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
m_Mesh: {fileID: 6484118833445338268, guid: e6c2bb6fb80e29042b11385c7dd6ceab, type: 3}
--- !u!64 &794689840
MeshCollider:
m_ObjectHideFlags: 0
@@ -23060,7 +23060,7 @@ MeshFilter:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1026168397}
m_Mesh: {fileID: 2112596279228391150, guid: 471d04e939c6be84780b978dadd025c7, type: 3}
m_Mesh: {fileID: 2112596279228391150, guid: b5202d3fd0960b449a0b90a32606091d, type: 3}
--- !u!114 &1026168401
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -42406,6 +42406,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: -4812603321681283478, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 6484118833445338268, guid: e6c2bb6fb80e29042b11385c7dd6ceab, type: 3}
- target: {fileID: -4768591713712327632, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
@@ -43702,6 +43706,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3084577924942506993, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: -916581769993065996, guid: ba4eb97f2b31ad3429c232fbe9fd64da, type: 3}
- target: {fileID: 3110175278571055964, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
@@ -44198,6 +44206,22 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 5791748056259492224, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5791748056259492224, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5791748056259492224, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5791748056259492224, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5796319801499054703, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
@@ -44378,6 +44402,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 6894099636102008162, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: -5410104721861512981, guid: f166d0c9a5f6d154badd1ba9138f9a9d, type: 3}
- target: {fileID: 6896396310330264452, guid: 026d90e6b31bf0f47b6072ba92aef39a, type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 251a63ad52300b84aabf921bcbec7783
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,15 @@
using UnityEngine;
public class InitShader : MonoBehaviour
{
void Start()
{
var renderers = GetComponentsInChildren<Renderer>();
float startTime = Time.time;
foreach (var renderer in renderers)
{
renderer.material.SetFloat("_FogStartTime", startTime);
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 86ca9ade4ca92524b8d44453ce5b01ac