Search Unity

[BUILD-Black screen] problem with image effect shader(?)

Discussion in 'Web' started by Frencylil, Aug 4, 2020.

  1. Frencylil

    Frencylil

    Joined:
    Mar 13, 2018
    Posts:
    4
    Hi I'm new in WebGL build, i create a simple project with the shader "Image Effect Shader", but in the build the screen is black.

    I've already apply WebGL2.0 in flags of my browsers (tried on chrome and edge) and enabled hardware acceleration.

    If I build a scene with a simple gameobject, everything works fine, but if i use the scene with the shader, everything turn black.

    I tried to read something in the provided console, but i can't undestand the problem

    I checked the profiler and seems that something works, but it's not shown

    In the documentation i have saw this:

    > Any post-processing effect applied to the camera disables the built-in Anti-Aliasing.
    note: I don't think this is something useful for my problem, but i tried to remove everything

    Thanks fot the help
     
    Michael-K1 likes this.
  2. Frencylil

    Frencylil

    Joined:
    Mar 13, 2018
    Posts:
    4
    If someone bump in this post:
    Code (CSharp):
    1. CGPROGRAM
    2.             #pragma vertex vert
    3.             #pragma fragment frag
    4.             #pragma target 3.0
    this is the problem, i used target 5.0, and this work only with 3.0, i don't know why, but everything is fine now.