I am trying to texture a line segment with a 2-D texture element. In other words, I am providing same u value and increasing v value for my line.
I try to do this in Cg (with this piece of code:
), what I want to know is that whether this is possible with the OpenGL part.Code :kd = (half3)tex2D(hairTexture, uv).xyz;
If it is possible to texture a line primitive with a 2-D texture element with pure OpenGL, then I would know that the problem is with Cg part. (Recommendations with the Cg part are also welcomed )
Thanks in advance