summaryrefslogtreecommitdiffstats
path: root/2ner.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-03-06 19:45:42 -0800
committeryum <yum.food.vr@gmail.com>2025-03-06 19:45:42 -0800
commit39f1d5d72d3395b4ee2ee6d0d2304a33674f2092 (patch)
tree360d4f71a61552a9846a7b5cce45ea741ea802f8 /2ner.shader
parent6482b8edd3ecdbf136692e910258dc452f8be71b (diff)
add filament cloth brdf
Diffstat (limited to '2ner.shader')
-rw-r--r--2ner.shader17
1 files changed, 15 insertions, 2 deletions
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