title: Repeat texture like stipple
body: <p>I'm using orthographic projection.</p>
  
  <p>I have 2 triangles creating one long quad.
  On this quad i put a texture that repeat him self along the the way.</p>
  
  <p>The world zoom is always changing by the user - and makes the quad length be short or long accordingly. The height is being calculated in the shader so it is always the same size (in pixels).</p>
  
  <p>My problem is that i want the texture to repeat according to it's real (pixel size) and the length of the quad. In other words, that the texture will be always the same size (pixels) and it will fill the quad by repeating it more or less depend on the quad length. </p>
  
  <p>The rotation is important.</p>
  
  <p>For Example
  My texture is <img src="https://i.stack.imgur.com/hBPWh.png" alt="enter image description here"></p>
  
  <p>I've added to my vertices - texture coordinates for duplicating it 20 times now
  as you see below<img src="https://i.stack.imgur.com/hV6ev.png" alt="enter image description here">
  Because it's too much zoomed out we see the texture squeezed. </p>
  
  <p>Now i'm zooming in and the texture stretched. It will always be 20 times repeat.
  <img src="https://i.stack.imgur.com/AJGhd.png" alt="enter image description here"></p>
  
  <p>I'm sure that i have to play in with the texture coordinates in the frag shader, but don't see the solution. or perhaps there is a better solution to my problem.</p>
  
  <p>---- ADDITION ----</p>
  
  <p>Solved it by:
  Calculating the repeat S value in the current zoom (That i'm adding the vertices) and send the map width (in world values) as attribute. Every draw i'm sending the current map width as uniform for calculating the scale.</p>
  
  <p>But i'm not happy with this solution.</p>