Search Unity

runtime shader compile failing in plugin with unity 2019.2.13+

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

  1. paul_immersivevreducation

    paul_immersivevreducation

    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:
    94