summaryrefslogtreecommitdiffstats
path: root/brdf.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-02-17 18:52:17 -0800
committeryum <yum.food.vr@gmail.com>2026-02-17 18:52:17 -0800
commit00553b3f305d0e2217659993f237ff3da604ef85 (patch)
tree76d048fcfb005cf7427f43bb6539d1ef59b75bf3 /brdf.cginc
parent0783345c23701149b807d2063410e329ba1fbed6 (diff)
Fold: add plane to octahedron code
Diffstat (limited to 'brdf.cginc')
-rwxr-xr-xbrdf.cginc4
1 files changed, 0 insertions, 4 deletions
diff --git a/brdf.cginc b/brdf.cginc
index d44ce14..d064823 100755
--- a/brdf.cginc
+++ b/brdf.cginc
@@ -250,12 +250,8 @@ float4 brdf(Pbr pbr, LightData data) {
// Standard split-sum IBL
float3 f0_spec = lerp(f0, pbr.albedo.xyz, pbr.metallic);
- //float3 ibl_specular_reflectance = f0_spec * dfg.x + dfg.y;
float3 ibl_specular_reflectance = lerp(dfg.xxx, dfg.yyy, f0_spec);
- //float3 ibl_specular_reflectance = f0_spec * dfg.x;
float3 indirect_specular = data.indirect.specular * ibl_specular_reflectance;
-
- //return float4(data.indirect.specular, 1);
specular += indirect_specular;
remainder = saturate(remainder - indirect_specular);