You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be nested out of the conditional #if defined(USE_CAMERA_OPAQUE), as this conditional is not executed when HDRP is enabled.
Additionally, for improved convenience, within the Graph Inspector of PBRGraph.shadergraph, HDRP's Surface Type should be Opaque instead of Transparent and Alpha Clipping should be enabled as it is frequently used in many materials.
The text was updated successfully, but these errors were encountered:
sseiichi
changed the title
Fix Proposal for HDRP
Fix Suggenstion for HDRP
Apr 12, 2024
Version 2.10.0-rc displays pink materials with HDRP and Unity 2022.3.12. Below is a suggested fix, and I hope you will find helpful.
In line 3 of PBRHelpers.cginc:
UnityGLTF/Runtime/Shaders/ShaderGraph/PBRHelpers.cginc
Line 3 in 20b7493
SHADERGRAPH_PREVIEW
must be replaced by another ShaderKeyword used in HDRP, such asSHADERPASS_FORWARD
, because it has been removed in the current version of HDRP. Note thatSHADERPASS_FORWARD
is just an example.Reference: https://issuetracker.unity3d.com/issues/shadergraph-number-if-shadergraph-preview-in-a-custom-function-node-throws-error
The two functions,
SampleSceneColor_float
andSampleSceneColor_half
, from lines 52 to 72 in PBRHelpers.cginc:UnityGLTF/Runtime/Shaders/ShaderGraph/PBRHelpers.cginc
Lines 52 to 72 in 20b7493
should be nested out of the conditional
#if defined(USE_CAMERA_OPAQUE)
, as this conditional is not executed when HDRP is enabled.Additionally, for improved convenience, within the Graph Inspector of PBRGraph.shadergraph, HDRP's Surface Type should be Opaque instead of Transparent and Alpha Clipping should be enabled as it is frequently used in many materials.
The text was updated successfully, but these errors were encountered: