Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

HDRP/Cant get Reflection Bufers in VFX graph shaders(view direction etc)

Discussion in 'Editor & General Support' started by bugaj, Jan 16, 2020.

  1. bugaj

    bugaj

    Joined:
    Jun 28, 2015
    Posts:
    58
    When I'm trying to use dot product view direction and normal in the lit shader (visual effects master, output lit quad, output lit mesh) with newest packages(I've tried with a new project, and new VFX graphs) VFX graph doesn't compile and the console is showing me this error message


    Shader error in 'Hidden/VFX/VFX_BloodPackTest/System 1/Output Particle Lit Quad': 'GetWorldSpaceNormalizeViewDir': no matching 0 parameter function at line 2558 (on d3d11)

    Compiling Vertex program with SHADOW_MEDIUM USE_CLUSTERED_LIGHTLIST
    Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR