/* * FILE: nurbsurf_bilinear1.dat * * a bilinear nurbs surface with a 2*2 texture * */ surf1 = NURBSURF ( (0., 0., 1., 1.), (0., 0., 1., 1.), ( ((0., 0., 0., 1.), (10., 0., 10., 1.)), ((0., 10., 10., 1.), (10., 10., 0., 1.)) ) ); teximg1 = TEXIMAGE2D( ( ((1.0,0.0,0.0,0.4), (0.0,1.0,0.0,0.4)), ((0.0,0.0,1.0,0.4), (1.0,1.0,0.0,0.4)) ) ); SCENEROOT = SCENENODE ( (), ( ATTRIBS(teximg1,USETEXIMG(2),USEUVTEXCS(1),USETEXMAGTONEAREST(1), USETEXMINTONEAREST(1),USETEXWRAPX(1),USETEXWRAPY(1), TEX2TRANSFORMS(TRNSF3PT((0,0,0),(8.0,0,0),(0,8.0,0))) ) ), (surf1) );