View Full Version : shading lang specs

09-28-2004, 05:11 AM
I downloaded a simple shading program:
TEMP temp;
ATTRIB tex0 = fragment.texcoord[0];
ATTRIB col0 = fragment.color;

PARAM pink = { 1.0, 0.4, 0.4, 1.0};

OUTPUT out = result.color;

TEX temp, tex0, texture[0], 2D;

MOV out, temp;

MUL out, col0,temp;
MUL out, temp, pink;

My problem is that I cannot find a documentaion for the instructions like TEX, MUL etc. or for any keywords. I already searched in GLSLangSpec.Full.1.10.59.pdf downloaded from this site, but no luck.
Does anyone know where I can find detailed specs?

09-28-2004, 07:22 AM
This is not glSlang, so itīs no surprise you didnīt find it there.

It is a fragment program written in assembler.

Check out this extension (http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt) .


09-29-2004, 02:03 AM
Ok, but where I can find documentation about shaders written in assembler?

09-29-2004, 03:12 AM
Check out the link i gave you.