![]() |
|
#2
|
|||
|
|||
|
Could someone please post a simple example that shows how to access the variables for normal, eyevec, viewDir etc. in a custom GLSL fragment shader?
The make-it-all-red sample in the documentation isn't helping: Code:
fragCode = """
void main()
{
gl_FragColor = vec4(1.0,0.0,0.0,1.0);
}
"""
shader = viz.addShader(frag=fragCode)
|
| Tags |
| glsl, rendering, shader, shading |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updating a Postprocessing effect | MissingAFew | Vizard | 2 | 05-07-2015 10:58 AM |
| Adding custom faces | mjabon | Vizard | 2 | 04-01-2009 09:34 PM |
| How do I add custom functions to a custom plugin? | reedev | Plug-in development | 7 | 02-01-2009 04:39 AM |
| animating custom faces: in search of "open_mouth" morphs | vr_boyko | Vizard | 1 | 09-16-2004 11:30 AM |
| Creating Custom Avatar Heads | farshizzo | Vizard | 22 | 09-12-2004 10:23 PM |