From a8bcffecd17ce0b9394a764936d731b45829b407 Mon Sep 17 00:00:00 2001 From: YodaDoge <51869140+YodaDoge@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:34:42 +0200 Subject: [PATCH] fix positioning URP 15 / Unity 2013.1 --- Assets/Shaders/BotWGrass.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Shaders/BotWGrass.shader b/Assets/Shaders/BotWGrass.shader index 1f75c79..4281635 100644 --- a/Assets/Shaders/BotWGrass.shader +++ b/Assets/Shaders/BotWGrass.shader @@ -168,7 +168,7 @@ Shader "Custom/BotWGrass" VertexOutput geomVert (VertexInput v) { VertexOutput o; - o.vertex = float4(TransformObjectToWorld(v.vertex), 1.0f); + o.vertex = v.vertex; o.normal = TransformObjectToWorldNormal(v.normal); o.tangent = v.tangent; o.uv = TRANSFORM_TEX(v.uv, _GrassMap);