Skip to content

Commit

Permalink
multiply lightmap specular too with lightmap exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
z3y committed Aug 23, 2024
1 parent 4b93803 commit f6b153f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ShaderLibrary/ForwardLighting.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit f6b153f

Please sign in to comment.