PDA

View Full Version : shading lang specs



nk
09-28-2004, 04:11 AM
I downloaded a simple shading program:
------------------------------------
!!ARBfp1.0
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?
Thanks.

Jan
09-28-2004, 06: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) .

Jan.

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

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