Skip to content

Commit

Permalink
Upgraded legacy shader paths
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
gusdleon committed Oct 16, 2023
1 parent 0080df3 commit 9ae68dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions code/Templates/Materials/Complex.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Layer0
{
shader "complex.vfx"
shader "shaders/complex.shader"

//---- PBR ----
F_METALNESS_TEXTURE 1
Expand All @@ -24,17 +24,14 @@ Layer0
//---- Fog ----
g_bFogEnabled "1"

//---- Lighting ----
g_flDirectionalLightmapMinZ "0.050"
g_flDirectionalLightmapStrength "1.000"

//---- Metalness ----
TextureMetalness "<#= Metallic #>"

//---- Normal ----
TextureNormal "<#= Normal #>"

//---- Roughness ----
g_flRoughnessScaleFactor "1.000"
TextureRoughness "<#= Roughness #>"

//---- Texture Coordinates ----
Expand Down
6 changes: 1 addition & 5 deletions code/Templates/Materials/Decal.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Layer0
{
shader "projected_decals.vfx"
shader "shaders/projected_decals.shader"

//---- Normal ----
F_NORMAL_MAP 1
Expand All @@ -19,10 +19,6 @@ Layer0
//---- Fog ----
g_bFogEnabled "1"

//---- Lighting ----
g_flDirectionalLightmapMinZ "0.050"
g_flDirectionalLightmapStrength "1.000"

//---- Metalness ----
TextureMetalness "<#= Metallic #>"

Expand Down

0 comments on commit 9ae68dd

Please sign in to comment.