summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-16 16:32:02 -0700
committeryum <yum.food.vr@gmail.com>2026-03-16 16:32:04 -0700
commit703782b257bd69a962af8f914288db624334f42c (patch)
tree687cb3bd7340d54e07f9073c933df293a6135c57
parent0b42d463db23d2c6eb0b6651486912ffed2f8857 (diff)
More flashing adjustments
IBL specular looks sharper up close now.
-rw-r--r--filamented.cginc3
1 files changed, 2 insertions, 1 deletions
diff --git a/filamented.cginc b/filamented.cginc
index 63552c2..c760b79 100644
--- a/filamented.cginc
+++ b/filamented.cginc
@@ -1,6 +1,7 @@
#ifndef __FILAMENTED_INC
#define __FILAMENTED_INC
+#include "data.cginc"
#include "globals.cginc"
#include "math.cginc"
@@ -220,7 +221,7 @@ half3 Unity_GlossyEnvironment_local (UNITY_ARGS_TEXCUBE(tex), half4 hdr, Unity_G
// Workaround for issue where objects are blurrier than they should be
// due to specular AA.
float roughnessAdjustment = 1-perceptualRoughness;
- roughnessAdjustment = 1e-6f * roughnessAdjustment * roughnessAdjustment;
+ roughnessAdjustment = MIN_PERCEPTUAL_ROUGHNESS * roughnessAdjustment * roughnessAdjustment;
perceptualRoughness = perceptualRoughness - roughnessAdjustment;
// Unity derivation