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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

My objects are stretched when I go to full screen on WebGL

Discussion in 'WebGL' started by AdamDice, Jun 20, 2022.

  1. AdamDice

    AdamDice

    Joined:
    Jun 20, 2022
    Posts:
    7
    I am working on a Unity project that I have to convert into a website. I use "WebGL Publisher" package in order to build my project into a website. I use the 2020.3.34f1 editor version. I have several issues exporting this project into WebGL. In the Linux platform, it works fine.

    linuxplatform.png

    But in WebGL, I have that :

    screenshot.png

    I have a first issue about the "compute shader" because WebGL 2.0 doesn't support compute shader according to https://docs.unity3d.com/2020.2/Documentation/Manual/class-ComputeShader.html where WebGL isn't mentioned and https://www.khronos.org/registry/webgl/specs/latest/2.0-compute/ where it's written that I have to use WebGPU.
    computeshader.png

    So I have to use WebGPU but I wonder why are the objects stretched when I am in fullscreen ? I don't have any ideas what it happens. Do you know what I have to do to have a fullscreen without objects ( as ship for example) stretched ?

    notinfullscreen.png
     
  2. AdamDice

    AdamDice

    Joined:
    Jun 20, 2022
    Posts:
    7
    UP ! I haven't founded the solution yet. Does anyone in this earth has an idea ?