From 7a80f92ae94e64d42ea7956b00bf9fa3c5573c6f Mon Sep 17 00:00:00 2001 From: Hyblocker Date: Fri, 5 Aug 2022 18:05:24 +0200 Subject: [PATCH] Fix a bug where Hekky Shaders would go pink --- Hekky/Shaders/PBR/PBRUberPassStructures.cginc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Hekky/Shaders/PBR/PBRUberPassStructures.cginc b/Hekky/Shaders/PBR/PBRUberPassStructures.cginc index 275575d..dc491fb 100644 --- a/Hekky/Shaders/PBR/PBRUberPassStructures.cginc +++ b/Hekky/Shaders/PBR/PBRUberPassStructures.cginc @@ -34,9 +34,9 @@ struct v2f UNITY_LIGHTING_COORDS(7, 8) // next ones would not fit into SM2.0 limits, but they are always for SM3.0+ - // #if UNITY_REQUIRE_FRAG_WORLDPOS && !UNITY_PACK_WORLDPOS_WITH_TANGENT - // float3 worldPos : TEXCOORD9; - // #endif + #if UNITY_REQUIRE_FRAG_WORLDPOS && !UNITY_PACK_WORLDPOS_WITH_TANGENT + float3 posWorld : TEXCOORD9; + #endif UNITY_VERTEX_INPUT_INSTANCE_ID UNITY_VERTEX_OUTPUT_STEREO