Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

LWRP and OpenGL ES 3 on Android

Discussion in 'Graphics Experimental Previews' started by HulloImJay, Jan 4, 2019.

  1. HulloImJay

    HulloImJay

    Joined:
    Mar 26, 2012
    Posts:
    89
    Using Unity 2018.3.0f2 and LWRP 4.6.0 here, and trying to add Android support. However, I'm hitting the following shader compile errors when including OpenGL ES 3 support.

    Code (CSharp):
    1. Shader error in 'Hidden/Post FX/Fog': undeclared identifier 'sampler_CameraDepthTexture' at line 63 (on gles3)
    2.  
    3. Compiling Vertex program with STEREO_MULTIVIEW_ON
    4. Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING
    5.  
    If I remove OpenGL ES 3 and leave only Vulkan the app compiles correctly.


    So question: Is this a known issue? If so, is OpenGL ES 3 support planned to be added (and where in the roadmap would that be?)?
     
  2. Andre_Mcgrail

    Andre_Mcgrail

    Unity Technologies

    Joined:
    Dec 9, 2016
    Posts:
    244
    LWRP supports GL ES3, this shader is not part of LWRP so it is coming from somewhere else and causing you to be unable to build.
     
    HulloImJay likes this.
  3. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    Hi, it seems you are using PPv1 with LWRP. That's not supported. PPv2 is required.
     
    HulloImJay likes this.
  4. HulloImJay

    HulloImJay

    Joined:
    Mar 26, 2012
    Posts:
    89
    phil_lira likes this.