16 years, 10 months ago
Highlights
I thought attribute variables could be changed at any time?Anyway, I just found a way around setting the variable per vertex as I thought I had to do.Edit: I misunderstood your…
16 years, 10 months ago
16 years, 10 months ago
I have this test code which works: GLShader shader("shaders/test.vert", "shaders/test.frag"); ... shader.bind(); for(int j = 0; j < 100; j += 10) { shader.setAttrib1f("a", 1.…
16 years, 10 months ago
Well, after 3-4 hours trying to avoid cryptic errors and things not working, it seems like I've got my code to work (as expected). I am trying to write a simple shader for textu…
16 years, 10 months ago
Hi I am getting some strange (and random) errors when trying to use a shader. Fragment info ------------- 0(14) : error C0000: syntax error, unexpected $undefined at token "<…
16 years, 10 months ago
Latest Activity
See all in DiscussionsI thought attribute variables could be changed at any time?Anyway, I just found a way around setting the variable per …
16 years, 10 months ago
I have this test code which works: GLShader shader("shaders/test.vert", "shaders/test.frag"); ... shader.bind(); for(int j = 0; j < 100; j …
16 years, 10 months ago
Again, I think I've solved the problem.I added a '\0' to the buffer returned from my textfile-reading method.Stupid error, but …
16 years, 10 months ago