Search Unity

vectorArray not work in opengles 2.0?

Discussion in 'Shaders' started by dreamerflyer, May 9, 2017.

  1. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    I test the moving in vertex shader,but it seems work in opengles 3.0 but fail in opengles 2.0,this is a bug?
    Code (CSharp):
    1. uniform float4 _Points[250];  
    2.  
    3.             v2f vert (appdata v)
    4.             {
    5.                 v2f o;
    6.                      float4 pos=_Points[100];  
    7. }
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    Seems like a lot more data than possible in OpenGL ES 2.0. I'd say, check the specifications...
     
  3. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    run in dx9,console not show error,seems the shader is correct