From f6b153f15acbc5dab677760e144ff3a6560f35e5 Mon Sep 17 00:00:00 2001 From: z3y Date: Fri, 23 Aug 2024 13:47:08 +0200 Subject: [PATCH] multiply lightmap specular too with lightmap exposure --- ShaderLibrary/ForwardLighting.hlsl | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ShaderLibrary/ForwardLighting.hlsl b/ShaderLibrary/ForwardLighting.hlsl index 85fd3fb..a03ff75 100644 --- a/ShaderLibrary/ForwardLighting.hlsl +++ b/ShaderLibrary/ForwardLighting.hlsl @@ -277,9 +277,11 @@ namespace CustomLighting #ifdef USE_GLOBAL_LIGHTMAP_EXPOSURE indirectDiffuse *= _UdonLightmapExposure + 1; + lightmappedSpecular *= _UdonLightmapExposure + 1; #else #ifdef USE_LIGHTMAP_EXPOSURE indirectDiffuse *= _LightmapExposure; + lightmappedSpecular *= _LightmapExposure; #endif #endif diff --git a/package.json b/package.json index dd421be..bb0a6f2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.z3y.shaders", "description": "A Standard Shader and Surface Shaders alternative for Unity for Built-In pipeline and forward rendering (VRChat)", - "version": "3.3.7", + "version": "3.3.8", "unity": "2019.4", "displayName": "Lit Shaders", "hideInEditor": false,