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

Convert Texture to Cubemap on runtime in WebGL

Discussion in 'General Graphics' started by HECer, Jan 31, 2020.

  1. HECer

    HECer

    Joined:
    Mar 17, 2013
    Posts:
    46
    Hello, I need to convert via unitywebrequest downloaded textures to cubemaps at runtime in webgl.
    I tried to use this function:
    https://docs.unity3d.com/ScriptReference/Graphics.ConvertTexture.html

    Btw. there is no definition which srcElement number represents which value.
    The documentation isn't complete!

    But looks like it isn't avaiable on webgl at runtime.
    How can I convert textures to cubemaps properly at runtime?
     
  2. asmanjitha

    asmanjitha

    Joined:
    Apr 6, 2017
    Posts:
    3
    Did you solve your problem??