summaryrefslogtreecommitdiffstats
path: root/feature_macros.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-09-24 13:57:26 -0700
committeryum <yum.food.vr@gmail.com>2024-09-24 13:57:26 -0700
commit2b9e36fde45c5f488539f390288e0a2731d11fcf (patch)
treeed12017282d6145830b512ec2cf1a6d2834e15c7 /feature_macros.cginc
parent88a524d71bf46bca1c65c3f7ed5fcd3f6edd1d5e (diff)
World lighting fixes
* Add channel selection for roughness and metallic textures * This lets u combine roughness & metallic into one texture * Add Bakery-compatible emission slot * Add compile-time toggle for brightness clamping * Add toggle for world interpolators * Add emission type dropdown (baked/realtime/none) * Switch to bilinear filtering for base PBR maps to match standard shader behavior * Add bugfixes for Mochie BRDF in world lighting mode * Rename _NormalTex to _BumpMap for compatibility with standard shader * World lighting mode uses Unity baked GI logic instead of normal world lighting logic * Use uv2 instead of lmuv for lightmap UVs
Diffstat (limited to 'feature_macros.cginc')
-rw-r--r--feature_macros.cginc3
1 files changed, 3 insertions, 0 deletions
diff --git a/feature_macros.cginc b/feature_macros.cginc
index f4857a6..4aed35b 100644
--- a/feature_macros.cginc
+++ b/feature_macros.cginc
@@ -8,6 +8,7 @@
#pragma shader_feature_local _ _PBR_SAMPLER_REPEAT
#pragma shader_feature_local _ _PBR_SAMPLER_CLAMP
#pragma shader_feature_local _ _CUBEMAP
+#pragma shader_feature_local _ _EMISSION
#pragma shader_feature_local _ _EMISSION0
#pragma shader_feature_local _ _EMISSION1
#pragma shader_feature_local _ _RENDERING_CUTOUT
@@ -152,6 +153,8 @@
#pragma shader_feature_local _ _CLEARCOAT_MASK2
#pragma shader_feature_local _ _PROXIMITY_DIMMING
#pragma shader_feature_local _ _DISCARD
+#pragma shader_feature_local _ _BRIGHTNESS_CLAMP
+#pragma shader_feature_local _ _WORLD_INTERPOLATORS
#endif // __FEATURE_MACROS_INC