/*--------------------------------------------------------------------- * * Copyright (c) 1988 Pixar. All rights reserved. This data file and * the model it represents contains proprietary confidential information * and trade secrets of Pixar. Reverse engineering of binary code * is prohibited. Use of copyright notice is precautionary and * does not imply publication. * * RESTRICTED RIGHTS NOTICE * * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subdivision (b)(3)(ii) of the Rights * in Technical Data and Computer Software clause at 252.227-7013. * * Pixar * 3240 Kerner Blvd. * San Rafael, CA 94901 * *--------------------------------------------------------------------*/ surface metal (float Ka=1, Ks=1, roughness=.1) { point Nf, V; Nf = faceforward(normalize(N), I) ; V = normalize(-I) ; Oi = Os; Ci = Os * Cs * ( Ka*ambient() + Ks*specular(Nf,V,roughness) ); }