Shader Help

I noticed that when I press CTRL+Space while in the Fragment or Vertex files, a whole list of usable codes come up. However, very few are documented about what they do. Now I know there are these documents:


However, there are more codes which are not documented. Is there anywhere where I can get what they do? Thanks in advance.

glsl specs?

1 Like

Thanks nehon :slight_smile: I’ll read it.

yeh all i did to learn shaders was read that, and the first 7 chapters of the Orange book. Theres plenty of free resources online as well which are really helpful

@wezrule, is this the Orange Book?

And if so, how come there are things which aren’t in jME? Such as gl_Point_Smooth.

There are some stuff that you can’t access through the glsl editor tooltip, some variables has different names etc. (and you get a few error messages that aren’t correct). Wouldn’t worry too much about it.

Pretty much everything you learn in a general glsl tutorial you can use in jME, one way or another, so it’s always worth reading.

There’s so much to learn :’( I’m starting to lose heart…

A journey of a thousand miles starts with one step.

1 Like

It’s that long, huh? Nah, just kidding. Thanks for the motivation zarch!

@zarch said:
A journey of a thousand miles starts with one step.

@memonick just make sure you stay on the main path though, it's easy to get sidetracked...

What do you mean by the ‘main path’ nehon?

I mean no offense at all in what I’m gonna say next, I really mean to help you in your endeavor.

You often seem to give too much attention to details and loose track of your main objective.

This can take your sanity away when it comes to shaders.

Shaders are some kind of Pandora box, they allow you to make absolutely awesome things, but can be ungrateful little bit…es.

You can do absolutely everything with them, but there are very common things to begin with.

Also they are very hard to debug and it’s very easy to get discouraged.

So start with low expectations, think about your main objective first, write it down on a paper, and every time you feel lost, read it back.


Offended? Not at all. I know that’s a major flaw of mine, and maybe I’m in over my head when I’m trying to learn shaders, so I do hope I don’t get side-tracked. I’ll make sure to follow your advice. I’m very grateful - thanks :slight_smile:

1 Like