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
Davide
using GLSL 3.3 and higher
using GLSL 3.3 and higher
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
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
Re: using GLSL 3.3 and higher
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
apart from that I think you can use
"in vec4 Vertex;"
Or
"attrib vec4 Vertex"
or something like that