⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fglmaterial.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 2 页
字号:
3912(the)X3 f554 5084(GL_BACK)N1 f985(materials,)X1343(or)X1454(both)X3 f1640(GL_FRONT_AND_BACK)X1 f2604(materials)X2942(will)X3110(be)X3230(modi\256ed.)X3598(The)X3767(second,)X2 f554 5180(pname)N1 f768(,)X820(speci\256es)X1128(which)X1356(of)X1455(several)X1715(parameters)X2100(in)X2194(one)X2342(or)X2441(both)X2615(sets)X2767(will)X2923(be)X3031(modi\256ed.)X3388(The)X3546(third,)X2 f3750(params)X1 f(,)S554 5276(speci\256es)N850(what)X1026(value)X1220(or)X1307(values)X1532(will)X1676(be)X1772(assigned)X2068(to)X2150(the)X2268(speci\256ed)X2573(parameter.)X554 5410(Material)N851(parameters)X1229(are)X1353(used)X1526(in)X1614(the)X1738(lighting)X2012(equation)X2314(that)X2460(is)X2539(optionally)X2889(applied)X3151(to)X3239(each)X3413(vertex.)X3680(The)X3831(equa-)X554 5506(tion)N702(is)X779(discussed)X1110(in)X1196(the)X3 f1318(fglLightModel)X1 f1834 0.4531(reference)AX2158(page.)X2373(The)X2521(parameters)X2897(that)X3040(can)X3175(be)X3274(speci\256ed)X3582(using)X3 f3778(fglMa-)X554 5602(terial)N1 f737(,)X777(and)X913(their)X1080(interpretations)X1563(by)X1663(the)X1781(lighting)X2049(equation,)X2365(are)X2484(as)X2571(follows:)X3 f554 5736(GL_AMBIENT)N2 f1354(params)X1 f1631(contains)X1935(four)X2106(integer)X2367(or)X2472(\257oating-point)X2945(values)X3188(that)X3346(specify)X3616(the)X3752(ambient)X1354 5832(RGBA)N1605(re\257ectance)X1983(of)X2079(the)X2206(material.)X2538(Integer)X2795(values)X3029(are)X3157(mapped)X3440(linearly)X3714(such)X3890(that)X266 6144(Page)N442(1)X3577(July)X3730(22,)X3850(1997)X2 p%%Page: 2 210 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(F)N268(FG)X310(GL)X364(LM)X410(MA)X476(AT)X530(TE)X576(ER)X622(RI)X672(IA)X698(AL)X752(L)X802(\()X804(\()X840(\))X842(\))X1885(U)X1887(UN)X1941(NI)X1995(IX)X2021(X)X2093(S)X2095(Sy)X2137(ys)X2175(st)X2205(te)X2227(em)X2261(m)X2337(V)X2339(V)X3410(F)X3412(FG)X3454(GL)X3508(LM)X3554(MA)X3620(AT)X3674(TE)X3720(ER)X3766(RI)X3816(IA)X3842(AL)X3896(L)X3946(\()X3948(\()X3984(\))X3986(\))X10 s1354 864(the)N1502(most)X1707(positive)X2010(representable)X2489(value)X2713(maps)X2932(to)X3045(1.0,)X3216(and)X3383(the)X3532(most)X3738(negative)X1354 960(representable)N1823(value)X2037(maps)X2246(to)X9 f2348(-)X1 f2392(1.0.)X2572(Floating-point)X3069(values)X3314(are)X3452(mapped)X3745(directly.)X1354 1056(Neither)N1646(integer)X1920(nor)X2078(\257oating-point)X2565(values)X2822(are)X2973(clamped.)X3337(The)X3514(initial)X3752(ambient)X1354 1152(re\257ectance)N1723(for)X1837(both)X1999(front-)X2202(and)X2338(back-facing)X2738(materials)X3052(is)X3125(\(0.2,)X3292(0.2,)X3432(0.2,)X3572(1.0\).)X3 f554 1286(GL_DIFFUSE)N2 f1354(params)X1 f1635(contains)X1943(four)X2118(integer)X2382(or)X2490(\257oating-point)X2966(values)X3212(that)X3373(specify)X3647(the)X3787(diffuse)X1354 1382(RGBA)N1605(re\257ectance)X1983(of)X2079(the)X2206(material.)X2538(Integer)X2795(values)X3029(are)X3157(mapped)X3440(linearly)X3714(such)X3890(that)X1354 1478(the)N1502(most)X1707(positive)X2010(representable)X2489(value)X2713(maps)X2932(to)X3045(1.0,)X3216(and)X3383(the)X3532(most)X3738(negative)X1354 1574(representable)N1823(value)X2037(maps)X2246(to)X9 f2348(-)X1 f2392(1.0.)X2572(Floating-point)X3069(values)X3314(are)X3452(mapped)X3745(directly.)X1354 1670(Neither)N1650(integer)X1928(nor)X2090(\257oating-point)X2580(values)X2841(are)X2996(clamped.)X3364(The)X3545(initial)X3787(diffuse)X1354 1766(re\257ectance)N1723(for)X1837(both)X1999(front-)X2202(and)X2338(back-facing)X2738(materials)X3052(is)X3125(\(0.8,)X3292(0.8,)X3432(0.8,)X3572(1.0\).)X3 f554 1900(GL_SPECULAR)N2 f1354(params)X1 f1630(contains)X1933(four)X2103(integer)X2363(or)X2467(\257oating-point)X2939(values)X3181(that)X3338(specify)X3607(the)X3742(specular)X1354 1996(RGBA)N1605(re\257ectance)X1983(of)X2079(the)X2206(material.)X2538(Integer)X2795(values)X3029(are)X3157(mapped)X3440(linearly)X3714(such)X3890(that)X1354 2092(the)N1502(most)X1707(positive)X2010(representable)X2489(value)X2713(maps)X2932(to)X3045(1.0,)X3216(and)X3383(the)X3532(most)X3738(negative)X1354 2188(representable)N1823(value)X2037(maps)X2246(to)X9 f2348(-)X1 f2392(1.0.)X2572(Floating-point)X3069(values)X3314(are)X3452(mapped)X3745(directly.)X1354 2284(Neither)N1645(integer)X1918(nor)X2075(\257oating-point)X2560(values)X2816(are)X2966(clamped.)X3329(The)X3505(initial)X3742(specular)X1354 2380(re\257ectance)N1723(for)X1837(both)X1999(front-)X2202(and)X2338(back-facing)X2738(materials)X3052(is)X3125(\(0,)X3232(0,)X3312(0,)X3392(1\).)X3 f554 2514(GL_EMISSION)N2 f1354(params)X1 f1616(contains)X1905(four)X2061(integer)X2306(or)X2395(\257oating-point)X2852(values)X3079(that)X3221(specify)X3475(the)X3596(RGBA)X3841(emit-)X1354 2610(ted)N1473(light)X1640(intensity)X1936(of)X2024(the)X2143(material.)X2467(Integer)X2716(values)X2942(are)X3062(mapped)X3337(linearly)X3603(such)X3771(that)X3912(the)X1354 2706(most)N1529(positive)X1802(representable)X2251(value)X2445(maps)X2634(to)X2716(1.0,)X2856(and)X2993(the)X3112(most)X3288(negative)X3581(representable)X1354 2802(value)N1559(maps)X1759(to)X9 f1852(-)X1 f1896(1.0.)X2066(Floating-point)X2553(values)X2788(are)X2917(mapped)X3201(directly.)X3516(Neither)X3787(integer)X1354 2898(nor)N1500(\257oating-point)X1974(values)X2218(are)X2356(clamped.)X2707(The)X2871(initial)X3096(emission)X3419(intensity)X3734(for)X3868(both)X1354 2994(front-)N1557(and)X1693(back-facing)X2093(materials)X2407(is)X2480(\(0,)X2587(0,)X2667(0,)X2747(1\).)X3 f554 3128(GL_SHININESS)N2 f1354(params)X1 f1615(is)X1689(a)X1746(single)X1958(integer)X2202(or)X2290(\257oating-point)X2746(value)X2941(that)X3082(speci\256es)X3379(the)X3498(RGBA)X3742(specular)X1354 3224(exponent)N1678(of)X1775(the)X1902(material.)X2234(Integer)X2491(and)X2636(\257oating-point)X3100(values)X3334(are)X3462(mapped)X3745(directly.)X1354 3320(Only)N1541(values)X1773(in)X1862(the)X1987(range)X2193([0,128])X2454(are)X2581(accepted.)X2931(The)X3084(initial)X3298(specular)X3594(exponent)X3916(for)X1354 3416(both)N1516(front-)X1719(and)X1855(back-facing)X2255(materials)X2569(is)X2642(0.)X3 f554 3550(GL_AMBIENT_AND_DIFFUSE)N1 f1354 3646(Equivalent)N1721(to)X1803(calling)X3 f2041(fglMaterial)X1 f2449(twice)X2643(with)X2805(the)X2923(same)X3108(parameter)X3450(values,)X3695(once)X3868(with)X3 f1354 3742(GL_AMBIENT)N1 f1911(and)X2047(once)X2219(with)X3 f2381(GL_DIFFUSE)X1 f2878(.)X3 f554 3876(GL_COLOR_INDEXES)N2 f1354 3972(params)N1 f1617(contains)X1907(three)X2091(integer)X2337(or)X2427(\257oating-point)X2885(values)X3114(specifying)X3472(the)X3594(color)X3783(indices)X1354 4068(for)N1523(ambient,)X1876(diffuse,)X2194(and)X2385(specular)X2728(lighting.)X3091(These)X3358(three)X3594(values,)X3894(and)X3 f1354 4164(GL_SHININESS)N1 f1934(,)X1990(are)X2125(the)X2259(only)X2437(material)X2737(values)X2979(used)X3163(by)X3280(the)X3415(color)X3617(index)X3832(mode)X1354 4260(lighting)N1628(equation.)X1970(Refer)X2174(to)X2261(the)X3 f2384(fglLightModel)X1 f2902 0.4531(reference)AX3228(page)X3405(for)X3524(a)X3585(discussion)X3943(of)X1354 4356(color)N1539(index)X1737(lighting.)X9 s266 4490(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 4586(The)N707(material)X998(parameters)X1379(can)X1519(be)X1623(updated)X1905(at)X1991(any)X2135(time.)X2345(In)X2440(particular,)X3 f2796(fglMaterial)X1 f3212(can)X3352(be)X3456(called)X3677(between)X3974(a)X554 4682(call)N693(to)X3 f778(fglBegin)X1 f1085(and)X1224(the)X1345(corresponding)X1827(call)X1966(to)X3 f2051(fglEnd)X1 f2281(.)X2344(If)X2421(only)X2585(a)X2643(single)X2856(material)X3141(parameter)X3485(is)X3560(to)X3644(be)X3742(changed)X554 4778(per)N677(vertex,)X918(however,)X3 f1235(fglColorMaterial)X1 f1839(is)X1912(preferred)X2228(over)X3 f2391(fglMaterial)X1 f2799(\(see)X3 f2949(fglColorMaterial)X1 f3533(\).)X9 s266 4912(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 5008(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X1836(either)X2 f2039(face)X1 f2193(or)X2 f2280(pname)X1 f2514(is)X2587(not)X2709(an)X2805(accepted)X3107(value.)X3 f554 5142(GL_INVALID_VALUE)N1 f1396(is)X1469(generated)X1802(if)X1871(a)X1927(specular)X2215(exponent)X2529(outside)X2780(the)X2898(range)X3097([0,128])X3351(is)X3424(speci\256ed.)X9 s266 5276(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 5372(fglGetMaterial)N1 f9 s266 5506(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 5602(fglColorMaterial)N1 f1138(,)X3 f1178(fglLight)X1 f1453(,)X3 f1493(fglLightModel)X1 f266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(2)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X2 p%%Trailerxtxs

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -