title: GLSL Shader won't work on mac
body: <p>I am trying to create a GLSL texture shader in java on a mac, but mac doesn't support any version above #version 120. How would I port this 330 shader:</p>
  
  <pre><code>//this is my Vertex Shader
  #version 330
  
  layout (location = 0) in vec3 position;
  layout (location = 1) in vec2 texCoord;
  
  out vec2 texCoord0;
  
  uniform mat4 transform;
  
  void main()
  {
      gl_Position=transform*vec4(position,1.0);
      texCoord0=texCoord;
  }
  </code></pre>
  
  <p>This is my Fragment Shader</p>
  
  <pre><code>#version 330
  
  in vec2 texCoord0;
  
  uniform sampler2D sampler;
  
  out vec4 gl_FragColor;
  
  void main()
  {
      gl_FragColor=texture2D(sampler,texCoord0.xy);
  
  }
  </code></pre>
  
  <p>How do I convert these shaders to glsl 120 without losing functionality?</p>