Invisible leaver, new invisible shader

This commit is contained in:
2025-02-12 10:47:12 +01:00
parent cd08ee0a31
commit 8f195a479c
8 changed files with 4169 additions and 493 deletions

View File

@@ -0,0 +1,197 @@
%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: Lever_wheel_mat_invisible
m_Shader: {fileID: -6465566751694194690, guid: d078d39b162634ce8a82ea005db89ed0,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- USEFRESNEL
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- MOTIONVECTORS
- DepthOnly
- SHADOWCASTER
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- BaseTex:
m_Texture: {fileID: 2800000, guid: 55d97f02382f8664a948d4481e42ecc2, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- DissolveMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- NOSMap:
m_Texture: {fileID: 2800000, guid: e9412958850270d4995099f2338feefb, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 2800000, guid: 0ce2ee197205be840a93a83be6ec6812, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 2800000, guid: c7b792c50248fb348a205117e859a4cb, type: 3}
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: 2800000, guid: 0ce2ee197205be840a93a83be6ec6812, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 2800000, guid: 5606ff56eb2691d49be66f1b36e4cfb3, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NOSMap:
m_Texture: {fileID: 2800000, guid: e9412958850270d4995099f2338feefb, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 2800000, guid: 5180550cff92aa842a17841e393c5cab, type: 3}
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:
- AOStrength: 3
- AlphaClipThreshold: 0
- BASETEXTYPE: 1
- DissolveNoiseScale: 25
- EffectStrenght: 1
- FresnelPower: 4
- Metalness: 0.26
- NormalStrength: 1.47
- Smoothness: 0.19
- USEDISSOLVE: 1
- USEDISSOLVEMASK: 0
- USEFRESNEL: 1
- Vector1_473704f964214ae2bc68475022d1524b: 0
- _AOStrength: 1
- _AlphaClip: 0
- _AlphaToMask: 0
- _BendEffect: 0
- _BendMaxDistance: 1
- _BendMaxHeight: 0
- _BendMinDistance: 0.2
- _BendMinHeight: 1
- _Blend: 0
- _BlendModePreserveSpecular: 0
- _BumpScale: 1
- _CastShadows: 0
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _EffectThreshold: 0
- _EnvironmentReflections: 1
- _FadeDistance: 0
- _FarFadeDistance: 500
- _FresnelPower: 3
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _InverseFadeRange: 1
- _InverseFarFadeRange: 0.5
- _Metallic: 0
- _NormalStrength: 1
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.503
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 5
- _Surface: 1
- _Threshold: 0
- _USEDISTANCEFADE: 0
- _USESCANWAVE: 0
- _WaveTrail: 4
- _WorkflowMode: 1
- _ZTest: 4
- _ZWrite: 0
- _ZWriteControl: 0
- _alpha: 1
m_Colors:
- BaseColor: {r: 0.4245283, g: 0.4245283, b: 0.4245283, a: 0}
- Color_613d1588816440ec9b17710effb7528b: {r: 0, g: 13.98681, b: 714.8679, a: 0}
- EmissiveColor: {r: 0, g: 0, b: 0, a: 0}
- _AdditionalColor: {r: 0, g: 0.63524896, b: 1.4980391, a: 0}
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _BendVector: {r: 0, g: -1, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _FresnelColor: {r: 0, g: 0.46505523, b: 1, a: 0}
- _ScanWaveColor: {r: 0, g: 0.5949242, b: 1, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _UVMul: {r: 0.01, g: 0.01, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &7919621170187625885
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

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 313ddda7010d34a7389984d5caaf5264
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f1352604a203e46d59e91639a9710495
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -153,6 +153,20 @@
"m_SlotId": 6
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "f0aa931e1a8644b799e1167dfe2550ea"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "fdfd0e93b93c4c5985f97477c6ea23c3"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
@@ -195,6 +209,7 @@
"m_OutputNode": {
"m_Id": "6c08db97e7fb4c4f9482b1314adcc9e0"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
@@ -398,6 +413,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -437,6 +453,7 @@
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@@ -477,6 +494,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -563,6 +581,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -598,6 +617,7 @@
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@@ -691,6 +711,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -738,6 +759,7 @@
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@@ -818,6 +840,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -825,6 +848,7 @@
"m_SourceType": 1,
"m_FunctionName": "UnpackNOS",
"m_FunctionSource": "",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "Occlusion = pow(NOS.z, AOStrength);\nSmoothness = NOS.w * SmoothnessStrength;\n//Normal.xy = NOS.xy;\nNormal.xy = (NOS.xy-0.5)*2.0;\nNormal.z = sqrt(1- saturate(Normal.x*Normal.x -Normal.y*Normal.y));\nNormal.xy *= NormalStrength;\nNormal = normalize(Normal);\n"
}
@@ -867,6 +891,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -891,6 +916,7 @@
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@@ -915,8 +941,8 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -408.0,
"y": 0.0,
"x": -819.0,
"y": 33.99999237060547,
"width": 93.0,
"height": 34.0
}
@@ -929,6 +955,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
@@ -965,7 +992,7 @@
"m_StageCapability": 3,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_SerializedTexture": "",
"m_Guid": ""
},
"m_DefaultType": 0
@@ -986,6 +1013,7 @@
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@@ -1045,13 +1073,15 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_TextureType": 0,
"m_NormalMapSpace": 0,
"m_EnableGlobalMipBias": true
"m_EnableGlobalMipBias": true,
"m_MipSamplingMode": 0
}
{

View File

@@ -65,11 +65,11 @@ Material:
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BlendOp: 0
- _BlendOp: 2
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 1
- _DstBlend: 10
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1