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

📄 fgllightmodel.ps

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 PS
📖 第 1 页 / 共 2 页
字号:
1914(\257oating-point)X2374(value)X2573(that)X2718(speci\256es)X3019(how)X3182(specular)X3476(re\257ection)X3805(angles)X954 4662(are)N1078(computed.)X1459(If)X2 f1537(params)X1 f1801(is)X1878(0)X1942(\(or)X2060(0.0\),)X2231(specular)X2523(re\257ection)X2850(angles)X3079(take)X3237(the)X3359(view)X3539(direction)X3848(to)X3934(be)X954 4758(parallel)N1224(to)X1315(and)X1460(in)X1551(the)X1678(direction)X1992(of)X2088(the)X2215(-)X2 f2242(z)X1 f2302(axis,)X2481(regardless)X2837(of)X2934(the)X3062(location)X3350(of)X3447(the)X3575(vertex)X3806(in)X3898(eye)X954 4854(coordinates.)N1392(Otherwise,)X1769(specular)X2064(re\257ections)X2425(are)X2551(computed)X2894(from)X3077(the)X3202(origin)X3420(of)X3514(the)X3639(eye)X3778(coordi-)X954 4950(nate)N1108(system.)X1390(The)X1535(initial)X1741(value)X1935(is)X2008(0.)X3 f554 5084 -0.1648(GL_LIGHT_MODEL_TWO_SIDE)AN2 f954 5180(params)N1 f1214(is)X1287(a)X1343(single)X1554(integer)X1797(or)X1884(\257oating-point)X2339(value)X2533(that)X2673(speci\256es)X2969(whether)X3248(one-)X3412(or)X3500(two-sided)X3837(light-)X954 5276(ing)N1080(calculations)X1487(are)X1610(done)X1790(for)X1908(polygons.)X2265(It)X2337(has)X2467(no)X2570(effect)X2777(on)X2880(the)X3001(lighting)X3272(calculations)X3678(for)X3795(points,)X954 5372(lines,)N1154(or)X1250(bitmaps.)X1572(If)X2 f1655(params)X1 f1924(is)X2006(0)X2075(\(or)X2198(0.0\),)X2374(one-sided)X2715(lighting)X2992(is)X3074(speci\256ed,)X3409(and)X3555(only)X3727(the)X2 f3855(front)X1 f954 5468(material)N1263(parameters)X1662(are)X1807(used)X2000(in)X2108(the)X2252(lighting)X2546(equation.)X2908(Otherwise,)X3303(two-sided)X3664(lighting)X3957(is)X954 5564(speci\256ed.)N1309(In)X1406(this)X1551(case,)X1740(vertices)X2020(of)X2117(back-facing)X2527(polygons)X2850(are)X2979(lighted)X3231(using)X3435(the)X2 f3564(back)X1 f3747(material)X954 5660(parameters,)N1347(and)X1483(have)X1655(their)X1822(normals)X2100(reversed)X2393(before)X2619(the)X2737(lighting)X3005(equation)X3301(is)X3374(evaluated.)X3742(Vertices)X954 5756(of)N1061(front-facing)X1485(polygons)X1818(are)X1957(always)X2220(lighted)X2482(using)X2695(the)X2 f2833(front)X1 f3029(material)X3333(parameters,)X3747(with)X3930(no)X954 5852(change)N1202(to)X1284(their)X1451(normals.)X1749(The)X1894(initial)X2100(value)X2294(is)X2367(0.)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(LL)X410(LI)X456(IG)X482(GH)X536(HT)X590(TM)X636(MO)X702(OD)X756(DE)X810(EL)X856(L)X906(\()X908(\()X944(\))X946(\))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)X3306(F)X3308(FG)X3350(GL)X3404(LL)X3450(LI)X3496(IG)X3522(GH)X3576(HT)X3630(TM)X3676(MO)X3742(OD)X3796(DE)X3850(EL)X3896(L)X3946(\()X3948(\()X3984(\))X3986(\))X10 s554 864(In)N646(RGBA)X893(mode,)X1116(the)X1239(lighted)X1486(color)X1676(of)X1768(a)X1829(vertex)X2055(is)X2133(the)X2256(sum)X2414(of)X2506(the)X2629(material)X2917(emission)X3227(intensity,)X3548(the)X3672(product)X3943(of)X554 960(the)N673(material)X957(ambient)X1236(re\257ectance)X1606(and)X1742(the)X1860(lighting)X2128(model)X2348(full-scene)X2685(ambient)X2963(intensity,)X3278(and)X3414(the)X3532(contribution)X3943(of)X554 1056(each)N733(enabled)X1014(light)X1191(source.)X1472(Each)X1664(light)X1841(source)X2082(contributes)X2470(the)X2600(sum)X2765(of)X2864(three)X3057(terms:)X3309(ambient,)X3619(diffuse,)X3894(and)X554 1152(specular.)N887(The)X1037(ambient)X1320(light)X1491(source)X1726(contribution)X2142(is)X2220(the)X2343(product)X2613(of)X2705(the)X2828(material)X3116(ambient)X3399(re\257ectance)X3772(and)X3912(the)X554 1248(light's)N796(ambient)X1092(intensity.)X1445(The)X1608(diffuse)X1869(light)X2053(source)X2301(contribution)X2730(is)X2821(the)X2958(product)X3242(of)X3348(the)X3485(material)X3787(diffuse)X554 1344(re\257ectance,)N954(the)X1083(light's)X1318(diffuse)X1572(intensity,)X1897(and)X2043(the)X2171(dot)X2303(product)X2578(of)X2675(the)X2803(vertex's)X3092(normal)X3349(with)X3521(the)X3649(normalized)X554 1440(vector)N786(from)X974(the)X1104(vertex)X1337(to)X1431(the)X1561(light)X1739(source.)X2021(The)X2178(specular)X2478(light)X2656(source)X2898(contribution)X3321(is)X3406(the)X3536(product)X3813(of)X3912(the)X554 1536(material)N844(specular)X1139(re\257ectance,)X1535(the)X1660(light's)X1891(specular)X2186(intensity,)X2508(and)X2651(the)X2776(dot)X2905(product)X3177(of)X3271(the)X3395(normalized)X3782(vertex-)X554 1632(to-eye)N788(and)X937(vertex-to-light)X1433(vectors,)X1718(raised)X1943(to)X2038(the)X2169(power)X2403(of)X2504(the)X2636(shininess)X2963(of)X3064(the)X3196(material.)X3533(All)X3669(three)X3864(light)X554 1728(source)N786(contributions)X1230(are)X1351(attenuated)X1703(equally)X1961(based)X2166(on)X2268(the)X2388(distance)X2673(from)X2851(the)X2971(vertex)X3193(to)X3276(the)X3395(light)X3562(source)X3793(and)X3930(on)X554 1824(light)N728(source)X966(direction,)X1299(spread)X1537(exponent,)X1879(and)X2023(spread)X2261(cutoff)X2481(angle.)X2724(All)X2855(dot)X2986(products)X3291(are)X3419(replaced)X3721(with)X3892(0)X3961(if)X554 1920(they)N712(evaluate)X1000(to)X1082(a)X1138(negative)X1430(value.)X554 2054(The)N718(alpha)X931(component)X1326(of)X1432(the)X1569(resulting)X1888(lighted)X2149(color)X2353(is)X2445(set)X2573(to)X2674(the)X2811(alpha)X3025(value)X3239(of)X3346(the)X3484(material)X3787(diffuse)X554 2150(re\257ectance.)N554 2284(In)N650(color)X844(index)X1051(mode,)X1278(the)X1405(value)X1608(of)X1704(the)X1831(lighted)X2082(index)X2289(of)X2385(a)X2450(vertex)X2680(ranges)X2920(from)X3106(the)X3234(ambient)X3522(to)X3614(the)X3742(specular)X554 2380(values)N779(passed)X1013(to)X3 f1095(fglMaterial)X1 f1503(using)X3 f1696(GL_COLOR_INDEXES)X1 f2539(.)X2599(Diffuse)X2860(and)X2996(specular)X3284(coef\256cients,)X3694(computed)X554 2476(with)N721(a)X782(\(.30,)X954(.59,)X1099(.11\))X1251(weighting)X1596(of)X1688(the)X1811(lights')X2040(colors,)X2281(the)X2405(shininess)X2724(of)X2817(the)X2941(material,)X3250(and)X3392(the)X3516(same)X3707(re\257ection)X554 2572(and)N690(attenuation)X1066(equations)X1393(as)X1480(in)X1562(the)X1680(RGBA)X1922(case,)X2101(determine)X2442(how)X2600(much)X2798(above)X3010(ambient)X3288(the)X3406(resulting)X3706(index)X3904(is.)X9 s266 2706(E)N268(ER)X314(RR)X364(RO)X414(OR)X468(RS)X518(S)X3 f10 s554 2802(GL_INVALID_ENUM)N1 f1361(is)X1434(generated)X1767(if)X2 f1836(pname)X1 f2070(is)X2143(not)X2265(an)X2361(accepted)X2663(value.)X3 f554 2936(GL_INVALID_OPERATION)N1 f1601(is)X1675(generated)X2009(if)X3 f2079(fglLightModel)X1 f2593(is)X2667(executed)X2974(between)X3263(the)X3382(execution)X3716(of)X3 f3805(fglBe-)X554 3032(gin)N1 f680(and)X816(the)X934(corresponding)X1413(execution)X1745(of)X3 f1832(fglEnd)X1 f2062(.)X9 s266 3166(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 3262(fglGet)N1 f788(with)X950(argument)X3 f1273(GL_LIGHT_MODEL_AMBIENT)X554 3358(fglGet)N1 f788(with)X950(argument)X3 f1273 -0.1202(GL_LIGHT_MODEL_LOCAL_VIEWER)AX554 3454(fglGet)N1 f788(with)X950(argument)X3 f1273 -0.1648(GL_LIGHT_MODEL_TWO_SIDE)AX554 3550(fglIsEnabled)N1 f1008(with)X1170(argument)X3 f1493(GL_LIGHTING)X1 f9 s266 3684(S)N268(SE)X310(EE)X356(E)X432(A)X434(AL)X488(LS)X534(SO)X576(O)X3 f10 s554 3780(fglLight)N1 f829(,)X3 f869(fglMaterial)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 + -