From 30680445b1c59fe107a0be8295da2b8a38c0f6ea Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 27 Jan 2023 15:28:37 -0800 Subject: Enable texture-based PBR rendering of backplate Users can now use PBR textures on their custom backplate! * Update TaSTT.fbx: UV map aspect ratio matches board --- Shaders/TaSTT_template.shader | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Shaders/TaSTT_template.shader') diff --git a/Shaders/TaSTT_template.shader b/Shaders/TaSTT_template.shader index bf9f53a..e0d436c 100644 --- a/Shaders/TaSTT_template.shader +++ b/Shaders/TaSTT_template.shader @@ -19,8 +19,15 @@ [MaterialToggle] Enable_Dithering("Enable font dithering", float) = 1 - [MaterialToggle] Use_Custom_Background("Enable custom background", float) = 0 - Custom_Background("Custom background", 2D) = "black" {} + [MaterialToggle] BG_Enable("Enable custom background", float) = 0 + BG_BaseColor("Background base color", 2D) = "black" {} + [NoScaleOffset] BG_NormalMap ("Background normal map", 2D) = "bump" {} + BG_NormalStrength ("Background normal strength", Float) = 1 + BG_Smoothness("Background smoothness", 2D) = "black" {} + [MaterialToggle]BG_Smoothness_Invert("Invert background smoothness", float) = 1 + BG_Metallic("Background metallic", 2D) = "black" {} + BG_Emission_Mask("Background emission mask", 2D) = "black" {} + BG_Emission_Color("Background emission color", Color) = (0, 0, 0) _Font_0x0000_0x1FFF ("_Font 0 (unicode 0x0000 - 0x1FFFF)", 2D) = "white" {} _Font_0x2000_0x3FFF ("_Font 1 (unicode 0x2000 - 0x3FFFF)", 2D) = "white" {} @@ -79,5 +86,6 @@ ENDCG } } + //CustomEditor "TaSTTShaderGUI" } -- cgit v1.2.3