Search Unity

Accessing Reflection Probes data in a shader

Discussion in 'High Definition Render Pipeline' started by Eugene-B, Oct 7, 2020.

  1. Eugene-B

    Eugene-B

    Joined:
    Sep 7, 2014
    Posts:
    323
    Hello everyone!

    I'm trying to do some operations with reflection probes in the shader, but I can't figure out exactly how HDRP works with it. The Standard and Universal render pipelines use unity_SpecCube variables, but I can't find anything like this in the HDRP shaders.
    So with which variable or function can I get the cubic texture of the reflection probe in HDRP?
     
  2. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi, it is not possible to access reflection probe (neither lights) in a material with HDRP. Our lighting is decoupled from Material and we used a tile/cluster renderer (light list is build after the GBuffer pass)
     
  3. Eugene-B

    Eugene-B

    Joined:
    Sep 7, 2014
    Posts:
    323
    @SebLagarde

    What about the _EnvCubemapTextures variable? Looks like it contains an array of reflection probe textures? Can I get some data from there? Or write them there from some part of the code?