From 39f1d5d72d3395b4ee2ee6d0d2304a33674f2092 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 6 Mar 2025 19:45:42 -0800 Subject: add filament cloth brdf --- 2ner.shader | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to '2ner.shader') diff --git a/2ner.shader b/2ner.shader index 7af8fde..0574e7b 100644 --- a/2ner.shader +++ b/2ner.shader @@ -694,6 +694,19 @@ Shader "yum_food/2ner" [NonModifiableTextureData]_DFG("DFG", 2D) = "white" {} [ThryWideEnum(Water, 0.02, Skin, 0.028, Eyes, 0.025, Hair, 0.046, Teeth, 0.058, Fabric, 0.05, Stone, 0.045, Plastic, 0.045, Glass, 0.06, Gemstone, 0.07, Diamond, 0.18)]_reflectance("Reflectance", Float) = 0.028 [Helpbox]_reflectance_help("Values are documented in the filament whitepaper here https://google.github.io/filament/Filament.html#toc4.8.3.2", Float) = 1 + //ifex _Material_Type_Cloth_Enabled==0 + [HideInInspector] m_start_Material_Type_Cloth("Cloth", Float) = 0 + [ThryToggle(_MATERIAL_TYPE_CLOTH)] _Material_Type_Cloth_Enabled("Enable", Float) = 0 + _Cloth_Mask("Mask", 2D) = "white" {} + _Cloth_Sheen_Color("Sheen Color", Color) = (1, 1, 1, 1) + _Cloth_Direct_Multiplier("Direct Multiplier", Range(0, 10)) = 1 + _Cloth_Indirect_Multiplier("Indirect Multiplier", Range(0, 10)) = 1 + [HideInInspector] m_start_Material_Type_Cloth_Subsurface("Subsurface", Float) = 0 + [ThryToggle(_MATERIAL_TYPE_CLOTH_SUBSURFACE)] _Material_Type_Cloth_Subsurface("Enable", Float) = 0 + _Cloth_Subsurface_Color("Subsurface Color", Color) = (1, 1, 1, 1) + [HideInInspector] m_end_Material_Type_Cloth_Subsurface("Subsurface", Float) = 0 + [HideInInspector] m_end_Material_Type_Cloth("Cloth", Float) = 0 + //endex _specularAntiAliasingVariance("Specular AA variance", Float) = 0.15 _specularAntiAliasingThreshold("Specular AA variance", Float) = 0.25 } @@ -927,7 +940,7 @@ Shader "yum_food/2ner" CGPROGRAM #pragma target 5.0 - #pragma multi_compile_fwdbase + #pragma multi_compile_fullshadows #pragma multi_compile_instancing #pragma multi_compile_fog #pragma vertex vert @@ -1074,7 +1087,7 @@ Shader "yum_food/2ner" CGPROGRAM #pragma target 5.0 - #pragma multi_compile_fwdbase + #pragma multi_compile_fullshadows #pragma multi_compile_instancing #pragma multi_compile_fog #pragma vertex vert -- cgit v1.2.3