Shaders HTML5 and iOS


#1

Hi there, I’m in the early stages of putting together a game prototype with the HTML5 + Javascript framework and would super appreciate if someone can answer a few quick questions :slight_smile:

  1. I’ve gone through the docs and it’s not super clear to me how this will turn into / bind to native code once I’m ready to port to iOS, or will it simply run the project in a UIWebView with Canvas inside of an XCode project?
  2. If I apply shader programs to my textures / scenes in the HTML5 framework, will these also bind to native openGL implementation on iOS or will the game degrade to use a canvas webview with no OpenGL?

Thanks in advance!

=
Emil
eanticev.com


#2

Please download and refer to the jsb and html5 sample of MoonMorrior.
The difference and the same things have been demonstrated very well in the project.
Indeed, I learned jsb and htmls from project and get a lot useful information.