From e60f6c717c103165abc918529cac83d491e57813 Mon Sep 17 00:00:00 2001 From: Sveske Juice Date: Fri, 2 Feb 2024 18:29:37 -0800 Subject: [PATCH] rope texturing --- Assets/Materials/Rope.mat | 39 ++++++++-- Assets/Scenes/RopeTest.unity | 8 +- Assets/TempSprites/Rope.png | Bin 0 -> 4470 bytes Assets/TempSprites/Rope.png.meta | 127 +++++++++++++++++++++++++++++++ 4 files changed, 163 insertions(+), 11 deletions(-) create mode 100644 Assets/TempSprites/Rope.png create mode 100644 Assets/TempSprites/Rope.png.meta diff --git a/Assets/Materials/Rope.mat b/Assets/Materials/Rope.mat index a9c9851..47a10d5 100644 --- a/Assets/Materials/Rope.mat +++ b/Assets/Materials/Rope.mat @@ -21,12 +21,14 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Rope - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: b7839dad95683814aa64166edc107ae2, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] - m_InvalidKeywords: [] - m_LightmapFlags: 4 + m_ValidKeywords: + - _EMISSION + m_InvalidKeywords: + - _FLIPBOOKBLENDING_OFF + m_LightmapFlags: 0 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 @@ -42,7 +44,7 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BaseMap: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: c19dca7dba0e0ab4eaf3d513ab5128bb, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: @@ -66,7 +68,7 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: c19dca7dba0e0ab4eaf3d513ab5128bb, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MaskTex: @@ -111,38 +113,59 @@ Material: - _AlphaToMask: 0 - _Blend: 0 - _BlendModePreserveSpecular: 1 + - _BlendOp: 0 - _BumpScale: 1 + - _CameraFadingEnabled: 0 + - _CameraFarFadeDistance: 2 + - _CameraNearFadeDistance: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _ColorMode: 0 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 + - _DistortionBlend: 0.5 + - _DistortionEnabled: 0 + - _DistortionStrength: 1 + - _DistortionStrengthScaled: 0 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EmissionEnabled: 0 - _EnableExternalAlpha: 0 - _EnvironmentReflections: 1 + - _FlipbookBlending: 0 + - _FlipbookMode: 0 - _GlossMapScale: 0 - _Glossiness: 0 - _GlossyReflections: 0 + - _LightingEnabled: 1 - _Metallic: 0 + - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.005 - _QueueOffset: 0 - _ReceiveShadows: 1 - _Smoothness: 0.202 - _SmoothnessTextureChannel: 0 + - _SoftParticlesEnabled: 0 + - _SoftParticlesFarFadeDistance: 1 + - _SoftParticlesNearFadeDistance: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _SrcBlendAlpha: 1 - _Surface: 0 + - _UVSec: 0 - _WorkflowMode: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 0.554717, g: 0.2277991, b: 0.032445684, a: 1} - - _Color: {r: 0.554717, g: 0.22779906, b: 0.032445684, a: 1} + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0} + - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} + - _Color: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _Flip: {r: 1, g: 1, b: 1, a: 1} - _RendererColor: {r: 1, g: 1, b: 1, a: 1} + - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/Scenes/RopeTest.unity b/Assets/Scenes/RopeTest.unity index b141385..24f9f69 100644 --- a/Assets/Scenes/RopeTest.unity +++ b/Assets/Scenes/RopeTest.unity @@ -1576,8 +1576,10 @@ LineRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_Positions: - - {x: 0, y: 0, z: 0} - - {x: 0, y: 0, z: 1} + - {x: 1, y: 0, z: 0} + - {x: 2, y: 0, z: 0} + - {x: 4, y: 0, z: 0} + - {x: 10, y: 0, z: 0} m_Parameters: serializedVersion: 3 widthMultiplier: 1 @@ -1629,7 +1631,7 @@ LineRenderer: numCornerVertices: 0 numCapVertices: 0 alignment: 0 - textureMode: 0 + textureMode: 1 textureScale: {x: 1, y: 1} shadowBias: 0.5 generateLightingData: 0 diff --git a/Assets/TempSprites/Rope.png b/Assets/TempSprites/Rope.png new file mode 100644 index 0000000000000000000000000000000000000000..44000eef8f1a32e15f7972f49bdf05b2cef01bb1 GIT binary patch literal 4470 zcmeHKe^3*57GI=-AZjXzP@#m?gJRiavm}tDM4<_ov;pHMV`-XkPtHyE7s;m0!rnyV!Q4;f*ZjG$QS=SM>s#K@%)4ZBMb~W7{O-e- zTB;pc*FHIyby$*lYwu6xZTn8VbyI%0VA;_!zYDz3{ckQ`+r)eSwWa4&o4c<+JuGUk z4SOf)$npT0zplc&E4PQXw7=pyEbXrJi9box-kjt19=)KdQp?ro`psz@@xYnWsd5pT)3et*`)2ZTh zl#E7KuJDd^${~Oeuq5AU%s1KOP6g`1mBV*VEJXP(6?UBh&D84nO0yO4#R9Pa#}b@O zA%U*&=EquTgFIE0I0gYn3N(*pEpnmI;cy5XQ3A6yS16LnWI~(}5(EY{Fk6v{C7qbb zwv>Yy#ZUnoWo0ZZV>a!Ncz{D<{46#b1)r})?A>}egiz_Hd-V|drHLho|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