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

Is it possible to make webgl's background transparent in Linear Space?

Discussion in 'WebGL' started by sp958857, Mar 20, 2020.

  1. sp958857

    sp958857

    Joined:
    Jun 1, 2016
    Posts:
    5
    I know its possible in Gamma Space by following the knowledgebase:
    https://support.unity3d.com/hc/en-u...79.1797063557.1584675360-724054719.1584675360

    however it falls in linear space, here is what i found:
    1.GLctx.clear(mask) seems not work, the background is black after calling GLctx.clear(mask) in linear space;
    2.GLctx.clearColor(0,0,0,0) seems not work, when i try to modify the clear color, it remain the same (0,0,0,1) even i call this method to change the color;

    i try this in unity 2017.4~2019.3, the result is the same, any ideas?
     
    Last edited: Mar 23, 2020
  2. HyunMok_Moon

    HyunMok_Moon

    Joined:
    Oct 14, 2016
    Posts:
    24
    dnnkeeper likes this.
  3. dnnkeeper

    dnnkeeper

    Joined:
    Jul 7, 2013
    Posts:
    82
    Having the same question