Timeline for Passing Colour from program to vertex shader
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 27, 2018 at 19:37 | comment | added | CiaranWelsh | not the same size solved my problem. | |
| Jun 23, 2017 at 8:06 | comment | added | trichoplax is on Codidact now | Since the original question was about getting the code to work correctly, you could post a separate question about efficiency. | |
| Jun 23, 2017 at 5:21 | comment | added | user3855005 | If I may ask for furthur optimization and advice, Currently in order to generate those quadrilateral cells, I am using 8 vertices for each cell. This then means each time I change the colour of a cell, I send 3*4*8 bytes each time. I changed it to send a third of the data by creating the colour in the shader itself, and using an int to determine which colour to use. Is there a more efficient method than the one I just described? | |
| Jun 23, 2017 at 5:18 | comment | added | user3855005 | Thank you! Updating it to have one color per vertex worked! | |
| Jun 23, 2017 at 5:17 | vote | accept | user3855005 | ||
| Jun 23, 2017 at 1:37 | history | answered | Nicol Bolas | CC BY-SA 3.0 |