Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug ShaderGraph undeclared identifier '_EnableProbeVolumes'

Discussion in 'Universal Render Pipeline' started by MylesLambert, Jul 12, 2023.

  1. MylesLambert

    MylesLambert

    Joined:
    Dec 31, 2012
    Posts:
    61
    Getting this error with a newly created shader graph in an empty project.

    Code (CSharp):
    1. Shader error in 'Shader Graphs/Master': undeclared identifier '_EnableProbeVolumes' at /UnityProjects/ArtURP/Library/PackageCache/com.unity.render-pipelines.universal@15.0.6/ShaderLibrary/ShaderGraphFunctions.hlsl(71) (on d3d11)
    2.  
    3. Compiling Subshader: 0, Pass: GBuffer, Vertex program with FOG_EXP2 PROBE_VOLUMES_L1 _MAIN_LIGHT_SHADOWS
    4. Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
    5. Disabled keywords: DIRLIGHTMAP_COMBINED DOTS_INSTANCING_ON DYNAMICLIGHTMAP_ON FOG_EXP FOG_LINEAR INSTANCING_ON LIGHTMAP_ON LIGHTMAP_SHADOW_MIXING PROBE_VOLUMES_L2 SHADER_API_GLES30 SHADOWS_SHADOWMASK UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN _MIXED_LIGHTING_SUBTRACTIVE
    6.  
    Unity 2023.1.3f1
    URP 15.0.6
    Shader Graph 15.0.6

    - Create new project 2023.1.3f1 Template 3D Core
    - Install Universal RP 15.0.6 via Package Manager.
    - Create URP Asset (Create/Rendering/URP Asset (with Universal Renderer)
    - In the URP Asset set Light Probe System to 'Probe Volumes'
    - Assign the Universal Render Pipeline Asset in Graphics/Scriptable Render Pipeline Settings
    - Create a new URP Lit Shader Graph (Create/Shader Graph/URP/Lit Shader Graph)
    - Open the shader graph & notice the error.
     
    Last edited: Jul 12, 2023
  2. longgi

    longgi

    Joined:
    Dec 1, 2012
    Posts:
    2
    Having the same issue in 2023.1.3f1. However, when create the same testing project in 2023.1.1f1, there is no such issue.
     
  3. reggie_sgs

    reggie_sgs

    Joined:
    Jun 29, 2014
    Posts:
    266
    I'm having the same issue as the original poster using the same versions of Unity/ShaderGraph/URP. Can someone let us know how to resolve this/
     
  4. IMTIBIT

    IMTIBIT

    Joined:
    Mar 16, 2016
    Posts:
    3
    Having the same issue...
     
  5. adrien-de-tocqueville

    adrien-de-tocqueville

    Unity Technologies

    Joined:
    Mar 16, 2020
    Posts:
    166
    reggie_sgs likes this.