Search Unity

WebGL Shadows Are Not Rendering in Chrome

Discussion in 'Editor & General Support' started by ptracy, Nov 7, 2019.

  1. ptracy

    ptracy

    Joined:
    Sep 13, 2018
    Posts:
    5
    This is truly driving me nuts!! Here's the problem:

    1. When I open the URL below in my Chrome browser, Game Object shadows do not render:
    http://ptracy.com/games/wp/demo/
    2. Same url, same computer, opened in FireFox, shadows render just fine.

    I cleared my cache, uninstalled, reinstalled Chrome, my OS is up to date, but nothing seems to work. I've been using Chrome to test my WebGL games for over a year without issue using the same computer. Attached is a pic for reference.

    Has anybody experienced this? Any help would be greatly appreciated!

    OS: Windows 7 Pro 64-bit
    Chrome: Version 78.0.3904.97 (Official Build) (64-bit)

     
    Last edited: Nov 8, 2019
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    Testing out on Windows 10 in Chrome Version 77.0.3865.120 (Official Build) (64-bit) and Chrome Version 78.0.3904.97 (Official Build) (64-bit), shadows do render properly for me. (GeForce GTX 2060). In the web console, log says

    [UnityCache] 'http://ptracy.com/games/wp/demo/Build/Builds.wasm.framework.unityweb' successfully revalidated and served from the indexedDB cache
    You can reduce your startup time if you configure your web server to host .unityweb files using gzip compression.
    [UnityCache] 'http://ptracy.com/games/wp/demo/Build/Builds.wasm.code.unityweb' successfully revalidated and served from the indexedDB cache
    [UnityCache] 'http://ptracy.com/games/wp/demo/Build/Builds.data.unityweb' successfully revalidated and served from the indexedDB cache
    Loading player data from data.unity3d
    Initialize engine version: 2019.2.9f1 (ebce4d76e6e8)
    Creating WebGL 2.0 context.
    Renderer: WebKit WebGL
    Vendor: WebKit
    Version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))
    GLES: 3
    EXT_color_buffer_float GL_EXT_color_buffer_float EXT_disjoint_timer_query_webgl2 GL_EXT_disjoint_timer_query_webgl2 EXT_float_blend GL_EXT_float_blend EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic KHR_parallel_shader_compile GL_KHR_parallel_shader_compile OES_texture_float_linear GL_OES_texture_float_linear WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb GL_WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info GL_WEBGL_debug_renderer_info WEBGL_debug_shaders GL_WEBGL_debug_shaders WEBGL_lose_context GL_WEBGL_lose_context
    OPENGL LOG: Creating OpenGL ES 3.0 graphics device ; Context level <OpenGL ES 3.0> ; Context handle 17935264
    UnloadTime: 0.405000 ms
    Input Manager initialize...

    Try cross referencing if there are any errors or other log prints in your Chrome run?
     
  3. ptracy

    ptracy

    Joined:
    Sep 13, 2018
    Posts:
    5
    Thanks for getting back to me @jukka_j . I put together a side-by-side of your console results with mine (changes in yellow highlight) along with some additional data. The part that confuses me most is first line: "Warning: Unsupported graphics API WebGL 2.0". I clearly have WebGL 2.0 enabled yet it doesn't seem to work. Any idea as to what is going on?

    webGL_problem_v2.png