Offset gl_Position or gl_Vertex by pixels value
问题 I have attribute contains pixels values. And i want to offset my gl_vertex with this attribute value. The problem is that my gl_vertex is in world units and the offset\attribute is in pixels. I can do it if i'm sending the screen size as uniforms and then convert the pixels to -1 to 1 values, and add it to the final gl_Position. But i don't want now to manage screen size events and sending it anyway every draw, every shader that i have. It there any way to do it with some matrix play, or