Who use in shader gl_FragCoord for Sprite ?

  ... discussions regarding GLES2 ShaderPrograms (VertexShaders and FragmentShaders).

Who use in shader gl_FragCoord for Sprite ?

Postby unbeatsoft » Mon Apr 15, 2013 8:03 pm

Who use in shader gl_FragCoord for Sprite ?
unbeatsoft
 
Posts: 4
Joined: Sun Mar 17, 2013 12:37 pm

Re: Who use in shader gl_FragCoord for Sprite ?

Postby unbeatsoft » Tue Apr 16, 2013 3:03 pm

Solution: fake_frag_coord/resolution=(gl_ModelViewProjectionMatrix * gl_Vertex).xy
unbeatsoft
 
Posts: 4
Joined: Sun Mar 17, 2013 12:37 pm


Return to ShaderPrograms

Who is online

Users browsing this forum: No registered users and 1 guest