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

📄 fgllight.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 2 页
字号:
3201(directly.)X3516(Neither)X3787(integer)X1354 1248(nor)N1486(\257oating-point)X1946(values)X2176(are)X2300(clamped.)X2638(The)X2789(initial)X3001(ambient)X3285(light)X3457(intensity)X3758(is)X3837(\(0,)X3950(0,)X1354 1344(0,)N1434(1\).)X3 f554 1478(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 1574(RGBA)N1611(intensity)X1921(of)X2023(the)X2156(light.)X2376(Integer)X2638(values)X2877(are)X3010(mapped)X3298(linearly)X3577(such)X3758(that)X3912(the)X1354 1670(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 1766(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 1862(nor)N1482(\257oating-point)X1939(values)X2166(are)X2287(clamped.)X2621(The)X2768(initial)X2976(value)X3172(for)X3 f3288(GL_LIGHT0)X1 f3766(is)X3841(\(1,)X3950(1,)X1354 1958(1,)N1434(1\);)X1543(for)X1657(other)X1842(lights,)X2059(the)X2177(initial)X2383(value)X2577(is)X2650(\(0,)X2757(0,)X2837(0,)X2917(0\).)X3 f554 2092(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 2188(RGBA)N1611(intensity)X1921(of)X2023(the)X2156(light.)X2376(Integer)X2638(values)X2877(are)X3010(mapped)X3298(linearly)X3577(such)X3758(that)X3912(the)X1354 2284(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 2380(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 2476(nor)N1482(\257oating-point)X1939(values)X2166(are)X2287(clamped.)X2621(The)X2768(initial)X2976(value)X3172(for)X3 f3288(GL_LIGHT0)X1 f3766(is)X3841(\(1,)X3950(1,)X1354 2572(1,)N1434(1\);)X1543(for)X1657(other)X1842(lights,)X2059(the)X2177(initial)X2383(value)X2577(is)X2650(\(0,)X2757(0,)X2837(0,)X2917(0\).)X3 f554 2706(GL_POSITION)N2 f1354(params)X1 f1622(contains)X1917(four)X2079(integer)X2330(or)X2425(\257oating-point)X2888(values)X3121(that)X3269(specify)X3530(the)X3657(position)X3943(of)X1354 2802(the)N1494(light)X1681(in)X1784(homogeneous)X2270(object)X2507(coordinates.)X2958(Both)X3154(integer)X3418(and)X3575(\257oating-point)X1354 2898(values)N1579(are)X1698(mapped)X1972(directly.)X2277(Neither)X2538(integer)X2781(nor)X2908(\257oating-point)X3363(values)X3588(are)X3707(clamped.)X1354 3032(The)N1500(position)X1778(is)X1852(transformed)X2261(by)X2362(the)X2481(modelview)X2858(matrix)X3088(when)X3 f3283(fglLight)X1 f3579(is)X3654(called)X3868(\(just)X1354 3128(as)N1444(if)X1516(it)X1583(were)X1763(a)X1822(point\),)X2056(and)X2195(it)X2262(is)X2338(stored)X2557(in)X2642(eye)X2777(coordinates.)X3209(If)X3285(the)X3405($w$)X3565(component)X3943(of)X1354 3224(the)N1477(position)X1759(is)X1837(0,)X1922(the)X2045(light)X2216(is)X2294(treated)X2538(as)X2630(a)X2691(directional)X3059(source.)X3334(Diffuse)X3600(and)X3742(specular)X1354 3320(lighting)N1640(calculations)X2061(take)X2233(the)X2369(light's)X2611(direction,)X2953(but)X3092(not)X3231(its)X3343(actual)X3572(position,)X3886(into)X1354 3416(account,)N1646(and)X1784(attenuation)X2163(is)X2239(disabled.)X2569(Otherwise,)X2942(diffuse)X3188(and)X3327(specular)X3618(lighting)X3889(cal-)X1354 3512(culations)N1679(are)X1814(based)X2033(on)X2149(the)X2283(actual)X2511(location)X2805(of)X2908(the)X3042(light)X3224(in)X3322(eye)X3469(coordinates,)X3894(and)X1354 3608(attenuation)N1742(is)X1827(enabled.)X2149(The)X2306(initial)X2524(position)X2814(is)X2900(\(0,)X3020(0,)X3113(1,)X3206(0\);)X3328(thus,)X3514(the)X3645(initial)X3864(light)X1354 3704(source)N1584(is)X1657(directional,)X2040(parallel)X2301(to,)X2403(and)X2539(in)X2621(the)X2739(direction)X3044(of)X3131(the)X3249($-z$)X3412(axis.)X3 f554 3838(GL_SPOT_DIRECTION)N2 f1354 3934(params)N1 f1617(contains)X1907(three)X2091(integer)X2337(or)X2427(\257oating-point)X2885(values)X3113(that)X3256(specify)X3512(the)X3634(direction)X3943(of)X1354 4030(the)N1494(light)X1681(in)X1784(homogeneous)X2270(object)X2507(coordinates.)X2958(Both)X3154(integer)X3418(and)X3575(\257oating-point)X1354 4126(values)N1579(are)X1698(mapped)X1972(directly.)X2277(Neither)X2538(integer)X2781(nor)X2908(\257oating-point)X3363(values)X3588(are)X3707(clamped.)X1354 4260(The)N1508(spot)X1670(direction)X1985(is)X2068(transformed)X2486(by)X2596(the)X2724(inverse)X2986(of)X3083(the)X3211(modelview)X3597(matrix)X3836(when)X3 f1354 4356(fglLight)N1 f1654(is)X1732(called)X1949(\(just)X2116(as)X2208(if)X2282(it)X2351(were)X2533(a)X2594(normal\),)X2893(and)X3033(it)X3101(is)X3178(stored)X3398(in)X3484(eye)X3620(coordinates.)X1354 4452(It)N1429(is)X1508(signi\256cant)X1867(only)X2035(when)X3 f2235(GL_SPOT_CUTOFF)X1 f2993(is)X3072(not)X3201(180,)X3368(which)X3591(it)X3662(is)X3742(initially.)X1354 4548(The)N1499(initial)X1705(direction)X2010(is)X2083(\(0,)X2190(0,)X9 f2270(-)X1 f2314(1\).)X3 f554 4682(GL_SPOT_EXPONENT)N2 f1354 4778(params)N1 f1617(is)X1693(a)X1752(single)X1966(integer)X2212(or)X2302(\257oating-point)X2760(value)X2957(that)X3100(speci\256es)X3399(the)X3520(intensity)X3819(distri-)X1354 4874(bution)N1587(of)X1683(the)X1810(light.)X2025(Integer)X2282(and)X2427(\257oating-point)X2891(values)X3125(are)X3253(mapped)X3536(directly.)X3850(Only)X1354 4970(values)N1579(in)X1661(the)X1779(range)X1978([0,128])X2232(are)X2351(accepted.)X1354 5104(Effective)N1670(light)X1837(intensity)X2133(is)X2207(attenuated)X2558(by)X2660(the)X2780(cosine)X3007(of)X3096(the)X3216(angle)X3412(between)X3702(the)X3822(direc-)X1354 5200(tion)N1502(of)X1593(the)X1715(light)X1885(and)X2024(the)X2145(direction)X2453(from)X2632(the)X2753(light)X2922(to)X3007(the)X3128(vertex)X3352(being)X3553(lighted,)X3818(raised)X1354 5296(to)N1443(the)X1568(power)X1796(of)X1890(the)X2015(spot)X2175(exponent.)X2536(Thus,)X2743(higher)X2975(spot)X3135(exponents)X3487(result)X3692(in)X3781(a)X3845(more)X1354 5392(focused)N1706(light)X1953(source,)X2284(regardless)X2711(of)X2879(the)X3078(spot)X3312(cutoff)X3605(angle)X3880(\(see)X3 f1354 5488(GL_SPOT_CUTOFF)N1 f2086(,)X2133(next)X2298(paragraph\).)X2714(The)X2866(initial)X3079(spot)X3239(exponent)X3561(is)X3642(0,)X3730(resulting)X1354 5584(in)N1436(uniform)X1714(light)X1880(distribution.)X3 f554 5718(GL_SPOT_CUTOFF)N2 f1354(params)X1 f1632(is)X1723(a)X1797(single)X2026(integer)X2287(or)X2392(\257oating-point)X2865(value)X3077(that)X3235(speci\256es)X3549(the)X3686(maximum)X1354 5814(spread)N1604(angle)X1818(of)X1925(a)X2001(light)X2187(source.)X2477(Integer)X2745(and)X2900(\257oating-point)X3374(values)X3618(are)X3756(mapped)X266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(2)X3 p%%Page: 3 310 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(LL)X410(LI)X456(IG)X482(GH)X536(HT)X590(T)X640(\()X642(\()X678(\))X680(\))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)X3572(F)X3574(FG)X3616(GL)X3670(LL)X3716(LI)X3762(IG)X3788(GH)X3842(HT)X3896(T)X3946(\()X3948(\()X3984(\))X3986(\))X10 s1354 864(directly.)N1665(Only)X1851(values)X2082(in)X2170(the)X2294(range)X2499([0,90])X2719(and)X2861(the)X2985(special)X3234(value)X3435(180)X3582(are)X3708(accepted.)X1354 960(If)N1436(the)X1562(angle)X1763(between)X2058(the)X2183(direction)X2495(of)X2589(the)X2714(light)X2887(and)X3030(the)X3155(direction)X3467(from)X3650(the)X3775(light)X3948(to)X1354 1056(the)N1485(vertex)X1719(being)X1930(lighted)X2185(is)X2271(greater)X2528(than)X2699(the)X2830(spot)X2996(cutoff)X3221(angle,)X3448(the)X3579(light)X3758(is)X3845(com-)X1354 1152(pletely)N1594(masked.)X1901(Otherwise,)X2273(its)X2370(intensity)X2666(is)X2740(controlled)X3086(by)X3187(the)X3306(spot)X3460(exponent)X3775(and)X3912(the)X1354 1248(attenuation)N1732(factors.)X2014(The)X2162(initial)X2371(spot)X2527(cutoff)X2742(is)X2818(180,)X2981(resulting)X3284(in)X3369(uniform)X3650(light)X3819(distri-)X1354 1344(bution.)N3 f554 1478(GL_CONSTANT_ATTENUATION)N554 1612(GL_LINEAR_ATTENUATION)N554 1746(GL_QUADRATIC_ATTENUATION)N2 f1354 1842(params)N1 f1624(is)X1707(a)X1773(single)X1994(integer)X2248(or)X2346(\257oating-point)X2812(value)X3017(that)X3168(speci\256es)X3475(one)X3622(of)X3720(the)X3849(three)X1354 1938(light)N1533(attenuation)X1922(factors.)X2214(Integer)X2475(and)X2624(\257oating-point)X3091(values)X3328(are)X3459(mapped)X3745(directly.)X1354 2034(Only)N1537(nonnegative)X1952(values)X2180(are)X2302(accepted.)X2647(If)X2724(the)X2845(light)X3014(is)X3090(positional,)X3448(rather)X3660(than)X3822(direc-)X1354 2130(tional,)N1577(its)X1673(intensity)X1969(is)X2042(attenuated)X2392(by)X2492(the)X2610(reciprocal)X2952(of)X3039(the)X3157(sum)X3310(of)X3397(the)X3515(constant)X3802(factor,)X1354 2226(the)N1475(linear)X1681(factor)X1892(times)X2088(the)X2209(distance)X2495(between)X2787(the)X2909(light)X3079(and)X3219(the)X3341(vertex)X3566(being)X3768(lighted,)X1354 2322(and)N1491(the)X1610(quadratic)X1930(factor)X2139(times)X2333(the)X2452(square)X2683(of)X2771(the)X2890(same)X3076(distance.)X3400(The)X3545(initial)X3751(attenua-)X1354 2418(tion)N1498(factors)X1737(are)X1856(\(1,)X1963(0,)X2043(0\),)X2150(resulting)X2450(in)X2532(no)X2632(attenuation.)X9 s266 2552(N)N268(NO)X322(OT)X376(TE)X422(ES)X468(S)X10 s554 2648(It)N623(is)X696(always)X939(the)X1057(case)X1216(that)X3 f1356(GL_LIGHT)X1 f1772($i$)X1894(=)X3 f1959(GL_LIGHT0)X1 f2435(+)X2500($i$.)X9 s266 2782(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 2878(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X1836(either)X2 f2039(light)X1 f2205(or)X2 f2292(pname)X1 f2526(is)X2599(not)X2721(an)X2817(accepted)X3119(value.)X3 f554 3012(GL_INVALID_VALUE)N1 f1400(is)X1477(generated)X1814(if)X1887(a)X1947(spot)X2104(exponent)X2422(value)X2620(is)X2697(speci\256ed)X3007(outside)X3263(the)X3386(range)X3590([0,128],)X3869(or)X3961(if)X554 3108(spot)N711(cutoff)X926(is)X1002(speci\256ed)X1310(outside)X1564(the)X1685(range)X1887([0,90])X2104(\(except)X2364(for)X2481(the)X2602(special)X2848(value)X3045(180\),)X3235(or)X3325(if)X3397(a)X3456(negative)X3751(attenua-)X554 3204(tion)N698(factor)X906(is)X979(speci\256ed.)X3 f554 3338(GL_INVALID_OPERATION)N1 f1601(is)X1675(generated)X2009(if)X3 f2079(fglLight)X1 f2375(is)X2449(executed)X2756(between)X3045(the)X3165(execution)X3499(of)X3 f3588(fglBegin)X1 f3894(and)X554 3434(the)N672(corresponding)X1151(execution)X1483(of)X3 f1570(fglEnd)X1 f1800(.)X9 s266 3568(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 3664(fglGetLight)N554 3760(fglIsEnabled)N1 f1008(with)X1170(argument)X3 f1493(GL_LIGHTING)X1 f9 s266 3894(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 3990(fglColorMaterial)N1 f1138(,)X3 f1178(fglLightModel)X1 f1671(,)X3 f1711(fglMaterial)X1 f266 6144(Page)N442(3)X3577(July)X3730(22,)X3850(1997)X10 f0 6428(h)N24(hhh)X4176(h)X4200(hhh)X3 p%%Trailerxtxs

⌨️ 快捷键说明

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