// Copyright (C) 2007 Dave Griffiths // Licence: GPLv2 (see COPYING) // Fluxus Shader Library // --------------------- // Refract/reflect combined with facing ratio, and blinn specular // (written on a plane from Dresden to Munich) varying vec3 V; varying vec3 N; void main() { vec3 v = normalize(V); vec3 n = normalize(N); vec3 col=vec3(gl_FrontMaterial.diffuse); gl_FragColor = vec4(col,1.0f-abs(dot(n,v))); }