Search Unity

runtime shader compile failing in plugin with unity 2019.2.13+

Discussion in 'Editor & General Support' started by main_paul, Dec 4, 2019.

  1. main_paul

    main_paul

    Joined:
    Nov 3, 2016
    Posts:
    2
    I have a shader that is compiled at run time inside a plugin. On previous versions of Unity this was working fine but with the latest its failing. This is on Android. What could be the problem? This is the error I get:

    OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range

    (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 348)
    E/SHADER: VERTEX COMPILE ERROR :
    E/SHADER: VERTEX SOURCE : #version 300 es

    in vec4 a_quadUV;

    out vec2 v_UV;

    void main() {
    v_UV = a_quadUV.zw;
    gl_Position = vec4( a_quadUV.xy, 0.0, 1.0 );
    }
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822