Hmm... I missed that. So next question, how do I introspect the shader to get that value? (ie, in c++ I don't want to hard-code it to 3).
Right. I expect glGetUniform1i to work. I was hoping for there to be a glGetProgramUniform1i(program, location).
-
-
Ah wait, glGetUniform takes a program. *doh*! Naming convention of glUniform/glProgramUniform made me think it wouldn't.
-
Just tested it and it works great. Thanks to both of you for the help!
Keskustelun loppu
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.