Friday, September 9, 2016

#JOGL Applying texture to polygon created from a byte array

Here I am applying a texture to the polygon after creating the texture from a byte buffer. A variety of textures can be created this way.

Snapshot:


Here is the source. A few modifications to this program allows you to create different textures by just changing the formula. Here is the same program with variety of textures mentioned as formulas.

No comments:

Post a Comment