Search Unity

  1. New Unity Live Help updates. Check them out here!

    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:
    32
    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?
     
unityunity