From f84ee640d8912561b2c14c87ac9178dbb645e44b Mon Sep 17 00:00:00 2001 From: stickman Date: Thu, 4 Aug 2016 14:26:08 -0400 Subject: [PATCH] Can't compile with S_RENDER_BACKFACES at true and S_UNLIT at false --- Assets/TheLabRenderer/Shaders/vr_standard.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/TheLabRenderer/Shaders/vr_standard.shader b/Assets/TheLabRenderer/Shaders/vr_standard.shader index f593725..21387ed 100644 --- a/Assets/TheLabRenderer/Shaders/vr_standard.shader +++ b/Assets/TheLabRenderer/Shaders/vr_standard.shader @@ -350,7 +350,7 @@ Shader "Valve/vr_standard" //-----------------------------------------------------------// // Negate the world normal if we are rendering the back face // //-----------------------------------------------------------// - #if ( S_RENDER_BACKFACES ) + #if ( S_RENDER_BACKFACES && !S_UNLIT ) { i.vNormalWs.xyz *= ( bIsFrontFace ? 1.0 : -1.0 ); }