📄 fglshademodel.ps
字号:
624(IO)X650(ON)X704(N)X10 s554 2034(GL)N687(primitives)X1037(can)X1176(have)X1355(either)X1565(\257at)X1694(or)X1788(smooth)X2050(shading.)X2366(Smooth)X2641(shading,)X2937(the)X3062(default,)X3332(causes)X3569(the)X3694(computed)X554 2130(colors)N781(of)X879(vertices)X1160(to)X1253(be)X1360(interpolated)X1774(as)X1872(the)X2001(primitive)X2325(is)X2409(rasterized,)X2773(typically)X3083(assigning)X3415(different)X3722(colors)X3948(to)X554 2226(each)N726(resulting)X1030(pixel)X1214(fragment.)X1568(Flat)X1716(shading)X1990(selects)X2229(the)X2352(computed)X2693(color)X2883(of)X2975(just)X3115(one)X3256(vertex)X3482(and)X3623(assigns)X3879(it)X3948(to)X554 2322(all)N659(the)X782(pixel)X967(fragments)X1313(generated)X1651(by)X1756(rasterizing)X2119(a)X2179(single)X2394(primitive.)X2751(In)X2842(either)X3049(case,)X3232(the)X3354(computed)X3694(color)X3883(of)X3974(a)X554 2418(vertex)N784(is)X866(the)X993(result)X1200(of)X1296(lighting)X1573(if)X1651(lighting)X1928(is)X2010(enabled,)X2309(or)X2405(it)X2478(is)X2560(the)X2687(current)X2944(color)X3138(at)X3226(the)X3354(time)X3526(the)X3654(vertex)X3885(was)X554 2514(speci\256ed)N859(if)X928(lighting)X1196(is)X1269(disabled.)X554 2648(Flat)N706(and)X850(smooth)X1113(shading)X1390(are)X1517(indistinguishable)X2091(for)X2213(points.)X2476(Starting)X2758(when)X3 f2961(fglBegin)X1 f3274(is)X3356(issued)X3585(and)X3730(counting)X554 2744(vertices)N824(and)X960(primitives)X1304(from)X1480(1,)X1560(the)X1678(GL)X1805(gives)X1994(each)X2162(\257at-shaded)X2534(line)X2674(segment)X2961($i$)X3083(the)X3201(computed)X3537(color)X3722(of)X3809(vertex)X554 2840($i)N637(+)X703(1$,)X824(its)X920(second)X1164(vertex.)X1426(Counting)X1744(similarly)X2049(from)X2226(1,)X2307(the)X2426(GL)X2555(gives)X2746(each)X2916(\257at-shaded)X3290(polygon)X3574(the)X3694(computed)X554 2936(color)N745(of)X838(the)X962(vertex)X1189(listed)X1388(in)X1476(the)X1600(following)X1937(table.)X2159(This)X2327(is)X2406(the)X2530(last)X2667(vertex)X2894(to)X2981(specify)X3238(the)X3361(polygon)X3648(in)X3735(all)X3840(cases)X554 3032(except)N784(single)X995(polygons,)X1328(where)X1545(the)X1663(\256rst)X1807(vertex)X2028(speci\256es)X2324(the)X2442(\257at-shaded)X2814(color.)X10 f1576 3144(i)N1588(iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii)X2 f1616 3240(primitive)N1925(type)X2079(of)X2161(polygon)X1 f2439($i$)X2 f2706(vertex)X1 f10 f1576 3248(i)N1588(iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii)X1576 3264(i)N1588(iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii)X1 f1616 3352(Single)N1840(polygon)X2122(\($)X2209(i)X2251(==)X2361(1)X2421($\))X2784(1)X1616 3448(Triangle)N1908(strip)X2691($i)X2773(+)X2838(2$)X1616 3544(Triangle)N1908(fan)X2691($i)X2773(+)X2838(2$)X1616 3640(Independent)N2033(triangle)X2713($)X2773(3)X2833(i$)X1616 3736(Quad)N1810(strip)X2661($2)X2761(i)X2803(+)X2868(2$)X1616 3832(Independent)N2033(quad)X2703($)X2763(4)X2823(i)X2865($)X10 f1576 3848(i)N1588(iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii)X1576(c)X3784(c)Y3704(c)Y3624(c)Y3544(c)Y3464(c)Y3384(c)Y3304(c)Y3224(c)Y2601 3848(c)N3784(c)Y3704(c)Y3624(c)Y3544(c)Y3464(c)Y3384(c)Y3304(c)Y3224(c)Y2988 3848(c)N3784(c)Y3704(c)Y3624(c)Y3544(c)Y3464(c)Y3384(c)Y3304(c)Y3224(c)Y1 f554 4040(Flat)N739(and)X916(smooth)X1212(shading)X1522(are)X1683(speci\256ed)X2030(by)X3 f2172(fglShadeModel)X1 f2749(with)X2 f2953(mode)X1 f3189(set)X3340(to)X3 f3464(GL_FLAT)X1 f3894(and)X3 f554 4136(GL_SMOOTH)N1 f1068(,)X1108(respectively.)X9 s266 4270(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 4366(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(mode)X1 f2030(is)X2103(any)X2239(value)X2433(other)X2618(than)X3 f2776(GL_FLAT)X1 f3164(or)X3 f3251(GL_SMOOTH)X1 f3765(.)X3 f554 4500(GL_INVALID_OPERATION)N1 f1621(is)X1715(generated)X2069(if)X3 f2159(fglShadeModel)X1 f2716(is)X2811(executed)X3139(between)X3449(the)X3589(execution)X3943(of)X3 f554 4596(fglBegin)N1 f858(and)X994(the)X1112(corresponding)X1591(execution)X1923(of)X3 f2010(fglEnd)X1 f2240(.)X9 s266 4730(A)N268(AS)X322(SS)X364(SO)X406(OC)X460(CI)X510(IA)X536(AT)X590(TE)X636(ED)X682(D)X766(G)X768(GE)X822(ET)X868(TS)X914(S)X3 f10 s554 4826(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_SHADE_MODEL)X1 f9 s266 4960(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 5056(fglBegin)N1 f838(,)X3 f878(fglColor)X1 f1163(,)X3 f1203(fglLight)X1 f1478(,)X3 f1518(fglLightModel)X1 f266 6144(Page)N442(1)X3577(July)X3730(22,)X3850(1997)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X1 p%%Trailerxtxs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -