using GLSL 3.3 and higher

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Revan1985
Posts: 89
Joined: Tue May 08, 2007 4:11 pm
Location: Italy

using GLSL 3.3 and higher

Post by Revan1985 »

Hi all.
I need to use a version of GLSL that don't support old shader code.

How can i give the shader a vertex if i can't use gl_vertex (deprecated in version 3.3 and above) ?

Thanks at all for every response :mrgreen:

Davide
CPU: AMD PHENOMII X6 1090T BE 3,2GHZ
RAM : OCZ 8GB 2*4GB DDR3 LOW VOLTAGE 1333
VGA: GeForce GTX680 2GB
HD : 500GB + 500GB + 2x1TB Raid Edition + 500GB External
Motherboard: ASUS CROSSHAIR FORMULA 4 890FX AM3
PSU: Corsair 750W
CPU Cooling: Katana 2
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Re: using GLSL 3.3 and higher

Post by devsh »

I just implemented Tessellation in irrlicht (GLSL 4.0v- Open Discussion forum) and I can still use gl_Vertex.xyz
apart from that I think you can use
"in vec4 Vertex;"
Or
"attrib vec4 Vertex"
or something like that
Post Reply