diff --git a/Assets/Shaders/Neighborhood/Imposters/LotImposterBlend.shader b/Assets/Shaders/Neighborhood/Imposters/LotImposterBlend.shader index 54a278b..c6655b4 100644 --- a/Assets/Shaders/Neighborhood/Imposters/LotImposterBlend.shader +++ b/Assets/Shaders/Neighborhood/Imposters/LotImposterBlend.shader @@ -11,6 +11,7 @@ Shader "OpenTS2/LotImposterBlend" Pass { + ZWrite Off Offset -1, -1 Blend SrcAlpha OneMinusSrcAlpha //ZWrite Off diff --git a/Assets/Shaders/Neighborhood/Road.shader b/Assets/Shaders/Neighborhood/Road.shader index ef53913..358632e 100644 --- a/Assets/Shaders/Neighborhood/Road.shader +++ b/Assets/Shaders/Neighborhood/Road.shader @@ -4,16 +4,16 @@ Shader "OpenTS2/Road" { _Color ("Color", Color) = (1,1,1,1) _MainTex ("Albedo (RGB)", 2D) = "white" {} - _AlphaCutOff("AlphaCutOff", Float) = 0.5 _TerrainWidth("Terrain Width", float) = 128 _TerrainHeight("Terrain Height", float) = 128 _ShadowMap("Terrain Shadow Map", 2D) = "white" {} } SubShader { - Tags { "RenderType"="Opaque" } + Tags { "Queue"="Transparent" "RenderType"="Transparent" } LOD 200 - + ZWrite Off + Blend SrcAlpha OneMinusSrcAlpha CGPROGRAM // Physically based Standard lighting model, and enable shadows on all light types #pragma surface surf CustomLambert fullforwardshadows alphatest:_AlphaCutOff diff --git a/Assets/Shaders/Neighborhood/Water.shader b/Assets/Shaders/Neighborhood/Water.shader index dc5dec9..95a75ab 100644 --- a/Assets/Shaders/Neighborhood/Water.shader +++ b/Assets/Shaders/Neighborhood/Water.shader @@ -11,6 +11,7 @@ Shader "OpenTS2/Water" } SubShader { + ZWrite Off Tags {"Queue" = "Transparent" "RenderType" = "Transparent" } LOD 200 diff --git a/Assets/Shaders/StandardMaterial/AlphaBlended.shader b/Assets/Shaders/StandardMaterial/AlphaBlended.shader index bcc608b..1cd1cbd 100644 --- a/Assets/Shaders/StandardMaterial/AlphaBlended.shader +++ b/Assets/Shaders/StandardMaterial/AlphaBlended.shader @@ -9,6 +9,7 @@ Shader "OpenTS2/StandardMaterial/AlphaBlended" } SubShader { + ZWrite Off Tags { "RenderType"="Transparent" "Queue"="Transparent" } CGPROGRAM