Jump to content
This is not recommended for shared computers
Sign in anonymously
Don't add me to the active users list
21 July 2016 - 09:00 AM
per your suggestion, I disabled the texturing in the init() and it works.
21 July 2016 - 08:55 AM
here is my new codes
17 July 2016 - 11:30 AM
I did not read you post until this morning. thanks for the reply.
17 July 2016 - 11:24 AM
I finally realized how to make a 2d texture read:
16 July 2016 - 03:49 PM
It just happened that either binding the png texture as 1d or 2d, it still worked. here are the codes that it generate a very interesting result after apply Nanoha's suggestions.
here is the codes:
and here is the output:
the codes from the above generated the output in the left picture below.
why there are only one row of rainbow? seem like it read the png file row-wised, vertically. strange. when i rotated the png file in photoshop to 90 degree clockwise, i got this output from the right:
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC