From 9ae68ddf11384d9dc031b8e8f877dcbdc5b5dfe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20de=20Le=C3=B3n?= Date: Sun, 15 Oct 2023 23:35:58 -0600 Subject: [PATCH] Upgraded legacy shader paths - Upgraded legacy shader pats from the old " *.vfx " to the new " shaders/*.shader ". - Deleted Lighting section, as its removed on recompile by the material editor. --- code/Templates/Materials/Complex.template | 7 ++----- code/Templates/Materials/Decal.template | 6 +----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/code/Templates/Materials/Complex.template b/code/Templates/Materials/Complex.template index 5df8291..d8ff67c 100644 --- a/code/Templates/Materials/Complex.template +++ b/code/Templates/Materials/Complex.template @@ -2,7 +2,7 @@ Layer0 { - shader "complex.vfx" + shader "shaders/complex.shader" //---- PBR ---- F_METALNESS_TEXTURE 1 @@ -24,10 +24,6 @@ Layer0 //---- Fog ---- g_bFogEnabled "1" - //---- Lighting ---- - g_flDirectionalLightmapMinZ "0.050" - g_flDirectionalLightmapStrength "1.000" - //---- Metalness ---- TextureMetalness "<#= Metallic #>" @@ -35,6 +31,7 @@ Layer0 TextureNormal "<#= Normal #>" //---- Roughness ---- + g_flRoughnessScaleFactor "1.000" TextureRoughness "<#= Roughness #>" //---- Texture Coordinates ---- diff --git a/code/Templates/Materials/Decal.template b/code/Templates/Materials/Decal.template index 5507195..1929f0d 100644 --- a/code/Templates/Materials/Decal.template +++ b/code/Templates/Materials/Decal.template @@ -2,7 +2,7 @@ Layer0 { - shader "projected_decals.vfx" + shader "shaders/projected_decals.shader" //---- Normal ---- F_NORMAL_MAP 1 @@ -19,10 +19,6 @@ Layer0 //---- Fog ---- g_bFogEnabled "1" - //---- Lighting ---- - g_flDirectionalLightmapMinZ "0.050" - g_flDirectionalLightmapStrength "1.000" - //---- Metalness ---- TextureMetalness "<#= Metallic #>"