Forums > Jitter

3 beginner question on shader

Nov 26 2013 | 11:03 pm

hi, I have 3 question about shader:
1 – i don’t find ftrasform() in the GLSL reference ( it’s a built-in function of MAX? in this case there’s a reference or documentation somewhere?
2 – what it means the "entry" attributi of the tag in the jxs file? (example @
3 – I notice that MAX don’t use GLSL in/out type why?

Nov 27 2013 | 2:08 pm

part of your problem is looking at documentation for the wrong version of glsl.
Max uses glsl 1.2, so that’s what you need to be looking at.

1- ftransform() simply transforms the vertex identical to how the fixed-function pipeline would tranform it.

2 – this is a CG file, and therefore the entry-point needs to be defined. simply the name of the function to use as main.

3 – glsl version 1.2

Dec 06 2013 | 11:51 pm

Thanks Rob, sorry for the delay.
Point 2 isn’t very clear for me right now, but I trust you!
Where can I find a complete reference of the jxs file with all available tags?

Dec 09 2013 | 11:16 am

check out "Appendix C: The JXS File Format" found in the jitter tutorials section of the ref-docs.
if anything is unclear, ask back here.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter