Anyone using GLSL for mobile shaders?

Due to my recent activity related to GLSL (http://forum.unity3d.com/threads/39629-GLSL-shader?p=446978#post446978),
I decided to post question in iOS part of the forum.

Is anyone here using GLSL for shaders on ES 2.0 enabled devices?

I was extremely surprised when I found only 1(!) example (which I am very grateful for, because it allowed me to get started with using GLSL in Unity).

thanks,
Slav

I’m poor, but willing to chip in a small amount, if anyone knows how to do this, and other people would combine funds with me to have them make a tutorial. To start off with, I just want to be able to rewrite fixed function shaders in GLSL.

Can you post a bunch of FFP shaders you want rewritten? (with a small description of what it does, maybe)

I planned to rewrite several built-in surface shaders and compare the performance.
I am testing ES 2.0 shaders on HTC Desire (Android)

No, I’m not interested in the shaders themselves, but rather, how you can put them together. Something that would just run down most of the ShaderLab docs (up until the “Fallback” page). (Just like my ShaderLab video series only a lot faster, because I don’t need to know how to do those things; just how to write GLSL, get Unity to understand it, and where I can go to further my knowledge.)

I don’t have time to do anything with lighting at present, so surface shading is more complex than I care to learn about at the moment.

Ok, I thought that you might want to start learning by comparing identical copies of FFP and GLSL shaders.

General shading tutorial would be great, that’s right.

I am not sure if you’re interested in reading books,
but I was reading in the following order:

  1. Introduction To 3D Game Programming With Directx 9.0 (Wordware Game and Graphics Library): Luna, Frank: 9781556229138: Amazon.com: Books
  2. http://developer.nvidia.com/object/cg_tutorial_home.html
  3. http://www.amazon.com/Shaders-Programmers-Artists-Premier-Development/dp/1592000924/ref=sr_1_1?ie=UTF8&s=books&qid=1291859313&sr=1-1

for GLSL reference something like OpenGL Orange Book will be great (http://www.amazon.com/OpenGL-Shading-Language-Randi-Rost/dp/0321637631/ref=pd_sim_b_24).

Thanks, but none of those are helpful to me, because without being able to see the result of code, and type it myself, I won’t learn it. I need to be able to see results of code changes, in Unity. (I tried working through the NVIDIA Cg tutorial, but I couldn’t even get the first “green” shader working. And I don’t really care to use Cg anyway.) I have no way to test outside of Unity; I don’t use Windows, and don’t use OpenGL or have a desire to right now.

Jessy, I admire your effort with ShaderLab video tutorials!
I think it helped lots of people (me included) to type the code and learn it by example.

I’ll probably need 1-2 months for experiments,
if the amount and diversity of GLSL shaders posted by me is enough from your point of view - I can probably record some video tutorials.

But a tutorial from a person with much more experience than me would be definitely better ;).

“don’t want to, don’t care, don’t don’t”… snooty issue =)

I’m arrogant, you can’t read, it’s a regular loser-fest up in heyah! :wink:

You will die distressed! And then there will be no “radiosity light” shining upon you. ^^