Skip to content

Commit 5a88bb8

Browse files
[HDRP] Make Decal shader compatible with SRP batcher (#3806)
* Fix SRP batcher with decal * Update CHANGELOG.md * Update CHANGELOG.md
1 parent c756e1c commit 5a88bb8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5151
- Fixed SSGI frame setting not greyed out while SSGI is disabled in HDRP Asset
5252
- Fixed HDRP material being constantly dirty.
5353
- Fixed issue in path tracing, where objects would cast shadows even if not present in the path traced layers (case 1318857).
54+
- Fixed SRP batcher not compatible with Decal (case 1311586)
5455

5556
### Changed
5657
- Updated the tooltip for the Decal Angle Fade property (requires to enable Decal Layers in both HDRP asset and Frame settings) (case 1308048).

com.unity.render-pipelines.high-definition/Runtime/Material/Decal/DecalProperties.hlsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ SAMPLER(sampler_MaskMap);
1010
TEXTURE2D(_EmissiveColorMap);
1111
SAMPLER(sampler_EmissiveColorMap);
1212

13+
CBUFFER_START(UnityPerMaterial)
14+
1315
float _NormalBlendSrc;
1416
float _MaskBlendSrc;
1517
float _DecalBlend;
@@ -35,4 +37,6 @@ float _Metallic;
3537
float4 _SelectionID;
3638
#endif
3739

40+
CBUFFER_END
41+
3842
#endif

0 commit comments

Comments
 (0)