File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
com.unity.render-pipelines.high-definition Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
36
36
- Fixed an issue with the frame count management for the volumetric fog (case 1299251).
37
37
- Fixed issue with shadow mask and area lights.
38
38
- Fixed an issue with the capture callback (now includes post processing results).
39
+ - Fixed decal draw order for ShaderGraph decal materials.
39
40
40
41
### Changed
41
42
- Removed the material pass probe volumes evaluation mode.
Original file line number Diff line number Diff line change @@ -859,9 +859,9 @@ public int DrawOrder
859
859
{
860
860
get
861
861
{
862
- if ( m_IsHDRenderPipelineDecal )
862
+ if ( this . m_Material . HasProperty ( HDShaderIDs . _DrawOrder ) )
863
863
{
864
- return this . m_Material . GetInt ( " _DrawOrder" ) ;
864
+ return this . m_Material . GetInt ( HDShaderIDs . _DrawOrder ) ;
865
865
}
866
866
else
867
867
{
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ static class HDShaderIDs
243
243
public static readonly int _DecalNormalBufferStencilRef = Shader . PropertyToID ( "_DecalNormalBufferStencilRef" ) ;
244
244
public static readonly int _DecalPrepassTexture = Shader . PropertyToID ( "_DecalPrepassTexture" ) ;
245
245
public static readonly int _DecalPrepassTextureMS = Shader . PropertyToID ( "_DecalPrepassTextureMS" ) ;
246
+ public static readonly int _DrawOrder = Shader . PropertyToID ( "_DrawOrder" ) ;
246
247
247
248
248
249
public static readonly int _WorldSpaceCameraPos = Shader . PropertyToID ( "_WorldSpaceCameraPos" ) ;
You can’t perform that action at this time.
0 commit comments