example shaders:(lisp syntax typed into the textbox above the triangle)
0xff00ff <- constant color
(tex 0 (coord 3) (coord 4)) <- using texturemap 0 with texcoord 3 and 4
(coord 3) <- output texcoord 3
(* (tex 0 (coord 3) (coord 4)) (tex 0 (coord 3) (coord 4))) <- multiply the texture by itself (contrast increased)
(* (tex 0 (coord 3) (coord 4)) 0xffffff) <- scalar multiply to lighten it
(* (tex 0 (coord 3) (coord 4)) 0x1f1f1f) <- scalar mult to darken it
(* (tex 0 (coord 3) (coord 4)) 0x00003f) <- mask out the blue channel
(* (* (tex 0 (coord 3) (coord 4)) (tex 0 (coord 3) (coord 4))) (coord 3)) <- hippie effect!
(tex 0 (coord 3) (* (tex 0 (coord 3) (coord 4)) (coord 3)) ) <- texture lookup by using the texture multiplied by a coord as one coordinate
errors:
red polygon, syntax error
yellow polygon, runtime error(some parameter in your shader is going beserk)
java e djevla kissapa!!!! arhghuewfj men man var ju tvungen o gorat..!!