Thread: Npr
View Single Post
  #1  
Old 11-26-2007, 08:28 AM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
Npr

Hi all, as part of a final yr project for my degree i want to produce a walk-through using non-photorealistic rendering techniques. I'm experimenting with a GLSL sketch-like shader produced using Mental Mill (i am not a programmer) using:
- toon2 = viz.addShader(vert='MySketch1_v.gl', frag = 'MySketch_f.gl') -
- box2.apply(toon2) -


but i get this error message:

glLinkProgram "" FAILED
Program "" infolog:
Vertex info
-----------
(20) : warning C7011: implicit cast from "vec4" to "vec3"
(20) : warning C7011: implicit cast from "vec4" to "vec3"
Fragment info
-------------
(581) : warning C7011: implicit cast from "vec4" to "float"
(581) : warning C7011: implicit cast from "float" to "vec4"
(581) : error C3002: call to undefined function "saturate"

I would be VERY grateful of ANY help at all with this as I feel like i've come to a grinding halt.

(I have attached the vert and frag files converted to txt so that i could upload them)

Regards

Nige
Attached Files
File Type: txt MySketch1_v.gl.txt (1.1 KB, 1390 views)
File Type: txt MySketch_f.gl.txt (24.2 KB, 1468 views)

Last edited by nige777; 11-26-2007 at 08:32 AM. Reason: Attach shader files.
Reply With Quote