[PD] use gl_VertexID

Philippe Boisnard philemon1 at mac.com
Thu Jun 14 11:51:26 CEST 2018


I continue to search to use gl_VertexID

when I want to declare a version in vertex shader script, I want to declare for example 
#version 2.1 (it’s the openGL version when I check with print gemwin)
but I have this in the PD_Terminal 
ERROR: 0:1: '' :  version '2' is not supported

Can I  use a version 2 for a vertex shader ? 

if I don’t declare a version 
gl_VertexID is not recognized

Philippe



> Le 14 juin 2018 à 06:27, Philippe Boisnard <philemon1 at mac.com> a écrit :
> 
> 
> Hello
> 
> I have a question about shader 
> I search to work with gl_VertexID in .vert script.
> Some one have an example to implement this in .vert.
> With gl_VertexID, you can have an array of vertex with no input array for VBO and you can detreminate in real time the size of VertexArray with no latencies.
> I know that we can use this, but I have difficulties. 
> 
> best regards
> 
> Philippe
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list