Author Topic: How to create textures for glshader  (Read 1945 times)

Offline sushobhit

  • long
  • ***
  • Posts: 109
  • future is now
    • View Profile
    • ANDROID APPS
How to create textures for glshader
« on: May 23, 2014, 01:23:01 pm »
hi egon ,

I would like to learn the shader and while going through the example provided with jpct-ae(hello shader) i came across 3 files one the real image , second normal (bluish version of the same image) and third (a greyish version). An you combine these 3 to make the shader.

?? So if i have a image , how can I get the bluish one and the greyish one so that the texture could be applied?


Offline sushobhit

  • long
  • ***
  • Posts: 109
  • future is now
    • View Profile
    • ANDROID APPS
Re: How to create textures for glshader
« Reply #1 on: May 23, 2014, 01:23:38 pm »
also what is the programming that goes in the other two glsl files ??? plz hlp

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to create textures for glshader
« Reply #2 on: May 23, 2014, 02:20:23 pm »
I created these textures by using some command line tool as described here: http://www.jpct.net/forum2/index.php?topic=3941.0

About your second question: Any GLSL tutorial that covers OpenGL ES will give you more insight on this topic than i can possibly provide.