vertex shaders

  1. F

    GameMaker Get Local Vertex Position in Vertex Shader

    Heya! When using a shader to modify how simple sprites are drawn, is it possible to find the local coordinates of each vertex within the vertex shader itself without relying on user defined uniforms? Essentially I want to find the vertex coordinates as they appear below: (finding values...
  2. W

    Vertex shader help with scaling

    I'm doing a lot of guesswork here as I'm new to shaders. In the vertex tab, I've noticed if I multiply "in_Position.x * 0.98" I can offset the shader to the left, which is interesting, but not what I need! void main() { gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * (...
Top