Search Unity

HDRP build on WebGL platform

Discussion in 'High Definition Render Pipeline' started by Just_Lukas, Sep 21, 2019.

  1. Just_Lukas

    Just_Lukas

    Joined:
    Feb 9, 2019
    Posts:
    34
    Hey, no matter what I try I cannot make Unity 2019.2.6 to build my HDRP project using latest WebGL. It shows me this error: Platform WebGL with device OpenGLES3 is not supported, no rendering will occur and I end up with blank editor / game window full of shader related errors. Is there a way of building my HDRP project so that it can be played in the browser?
     
    YevhenKut likes this.
  2. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,665
    Unfortunately, no. The "HDRP does not support OpenGL or OpenGL ES devices" (source) and "will most likely never work since it relies on a lot of wizardly things not available in WebGL", as written by @Schubkraft here.

    WebGL itself is based on OpenGL ES.
     
    xiangshushu, JonasLuz and YevhenKut like this.
  3. Just_Lukas

    Just_Lukas

    Joined:
    Feb 9, 2019
    Posts:
    34
    Okay thx for answer man
     
    xiangshushu likes this.
  4. unity_88CFB975D93D7F093336

    unity_88CFB975D93D7F093336

    Joined:
    Dec 26, 2021
    Posts:
    1
    How does it work now? I am new to it trying to understand.
     
  5. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    704
    HDRP still doesn't support WebGL, and will probably never.
    If WebGPU (web conterpart of Vulkan like WebGL is for OpenGL) gets more adopted, this might be the good target to build HDRP for web.
     
  6. roamerfree

    roamerfree

    Joined:
    Apr 2, 2022
    Posts:
    6
    Good to know! I have been trying to solve a related bug for hours..