SpriteKit shader crash iOS 9: SKDefaultShading, gl_FragCoord

前端 未结 4 2080
小蘑菇
小蘑菇 2021-02-20 02:51

Just installed the iOS 9 open beta (version 3) and now I\'m having loads of problems with SpriteKit shaders. On iOS 8 the following code worked just fine:

_fontS         


        
4条回答
  •  臣服心动
    2021-02-20 03:38

    I came here after seeing the message use of undeclared identifier 'gl_FragCoord' but eventually I could solve my problem by replacing

    gl_FragCoord.xy / u_sprite_size.xy

    with

    v_tex_coord

提交回复
热议问题