title: texture vs texture2D in GLSL
body: <p>When sampling a 2D texture in GLSL (a <code>uniform sampler2D</code>), the <code>texture</code> function is used and the dimension is inferred from the sampler (2D in this case). This is the modern way of sampling a texture in the GLSL since 1.30 (<a href="http://www.opengl.org/sdk/docs/manglsl/" rel="noreferrer">GLSL Reference Pages</a>). However you can also use the <code>texture2D</code> function.</p>
  
  <p>Is the <code>texture2D</code> function deprecated and if so, will support for the <code>texture2D</code> function be removed (or has been removed) in some version of GLSL?</p>