import{_ as n,c as a,a as l,b as Q,d as m,o as t}from"./app-BfM5Jnrn.js";const d="/assets/microfacet_5-B87W5glx.svg",e="/assets/Mathmatica_Phong-CQuCDS9y.gif",s="/assets/microfacet_phong-ToezsOkT.svg",o="/assets/Mathmatica_Beckmann-CrMNWfHi.gif",r="/assets/microfacet_beckmann-4C4iVV4V.svg",g="/assets/Mathmatica_bp-CYLdXId3.gif",h="/assets/microfacet_bp-CpsWYG3d.svg",i="/assets/Mathmatica_ggx-D6brwrPZ.gif",p="/assets/microfacet_ggx-bf_mscEH.svg",H="/assets/Mathmatica_gp-Dvpo45f3.gif",L="/assets/microfacet_gp-Br4gC-fP.svg",c={},u={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},f={style:{"vertical-align":"-2.028ex"},xmlns:"http://www.w3.org/2000/svg",width:"28.119ex",height:"5.107ex",role:"img",focusable:"false",viewBox:"0 -1361 12428.5 2257.4","aria-hidden":"true"},M={class:"MathJax",jax:"SVG",style:{position:"relative"}},x={style:{"vertical-align":"-0.186ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.472ex",height:"1.505ex",role:"img",focusable:"false",viewBox:"0 -583 2418.6 665","aria-hidden":"true"},Z={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},V={style:{"vertical-align":"-2.028ex"},xmlns:"http://www.w3.org/2000/svg",width:"23.661ex",height:"5.107ex",role:"img",focusable:"false",viewBox:"0 -1361 10458 2257.4","aria-hidden":"true"},w={class:"MathJax",jax:"SVG",style:{position:"relative"}},D={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"7.95ex",height:"2.477ex",role:"img",focusable:"false",viewBox:"0 -845 3514 1095","aria-hidden":"true"},v={class:"MathJax",jax:"SVG",style:{position:"relative"}},y={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.448ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 640 453","aria-hidden":"true"},j={class:"MathJax",jax:"SVG",style:{position:"relative"}},b={style:{"vertical-align":"-0.186ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.596ex",height:"1.692ex",role:"img",focusable:"false",viewBox:"0 -666 2473.6 748","aria-hidden":"true"},O={class:"MathJax",jax:"SVG",style:{position:"relative"}},R={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"7.23ex",height:"1.181ex",role:"img",focusable:"false",viewBox:"0 -511 3195.6 522","aria-hidden":"true"},C={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},k={style:{"vertical-align":"-0.667ex"},xmlns:"http://www.w3.org/2000/svg",width:"23.71ex",height:"2.579ex",role:"img",focusable:"false",viewBox:"0 -845 10479.7 1140","aria-hidden":"true"},A={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},B={style:{"vertical-align":"-2.028ex"},xmlns:"http://www.w3.org/2000/svg",width:"24.007ex",height:"5.107ex",role:"img",focusable:"false",viewBox:"0 -1361 10610.9 2257.4","aria-hidden":"true"},X={class:"MathJax",jax:"SVG",style:{position:"relative"}},G={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"17.555ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 7759.4 1000","aria-hidden":"true"},F={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},S={style:{"vertical-align":"-2.063ex"},xmlns:"http://www.w3.org/2000/svg",width:"49.085ex",height:"5.725ex",role:"img",focusable:"false",viewBox:"0 -1618.4 21695.4 2530.3","aria-hidden":"true"},E={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},J={style:{"vertical-align":"-1.577ex"},xmlns:"http://www.w3.org/2000/svg",width:"27.34ex",height:"4.613ex",role:"img",focusable:"false",viewBox:"0 -1342 12084.5 2039","aria-hidden":"true"},z={class:"MathJax",jax:"SVG",style:{position:"relative"}},N={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.448ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 640 453","aria-hidden":"true"},P={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},I={style:{"vertical-align":"-2.11ex"},xmlns:"http://www.w3.org/2000/svg",width:"25.086ex",height:"5.146ex",role:"img",focusable:"false",viewBox:"0 -1342 11088 2274.7","aria-hidden":"true"},W={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},U={style:{"vertical-align":"-2.387ex"},xmlns:"http://www.w3.org/2000/svg",width:"54.049ex",height:"8.873ex",role:"img",focusable:"false",viewBox:"0 -2866.9 23889.9 3921.9","aria-hidden":"true"},Y={class:"MathJax",jax:"SVG",style:{position:"relative"}},q={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"15.603ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 6896.4 1000","aria-hidden":"true"},K={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},$={style:{"vertical-align":"-2.387ex"},xmlns:"http://www.w3.org/2000/svg",width:"46.305ex",height:"8.873ex",role:"img",focusable:"false",viewBox:"0 -2866.9 20467 3921.9","aria-hidden":"true"},_={class:"MathJax",jax:"SVG",style:{position:"relative"}},Q1={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.448ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 640 453","aria-hidden":"true"},T1={class:"MathJax",jax:"SVG",style:{position:"relative"}},a1={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.448ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 640 453","aria-hidden":"true"},t1={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},m1={style:{"vertical-align":"-0.464ex"},xmlns:"http://www.w3.org/2000/svg",width:"23.097ex",height:"2.464ex",role:"img",focusable:"false",viewBox:"0 -883.9 10209 1088.9","aria-hidden":"true"},l1={class:"MathJax",jax:"SVG",style:{position:"relative"}},n1={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.448ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 640 453","aria-hidden":"true"},d1={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},e1={style:{"vertical-align":"-2.51ex"},xmlns:"http://www.w3.org/2000/svg",width:"22.535ex",height:"5.546ex",role:"img",focusable:"false",viewBox:"0 -1342 9960.3 2451.4","aria-hidden":"true"},s1={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},o1={style:{"vertical-align":"-2.387ex"},xmlns:"http://www.w3.org/2000/svg",width:"41.945ex",height:"5.423ex",role:"img",focusable:"false",viewBox:"0 -1342 18539.6 2397","aria-hidden":"true"},r1={class:"MathJax",jax:"SVG",style:{position:"relative"}},g1={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"13.656ex",height:"2.452ex",role:"img",focusable:"false",viewBox:"0 -833.9 6036.1 1083.9","aria-hidden":"true"},h1={class:"MathJax",jax:"SVG",display:"true",style:{position:"relative"}},i1={style:{"vertical-align":"-2.387ex"},xmlns:"http://www.w3.org/2000/svg",width:"37.452ex",height:"5.803ex",role:"img",focusable:"false",viewBox:"0 -1509.9 16553.6 2564.9","aria-hidden":"true"},p1={class:"MathJax",jax:"SVG",style:{position:"relative"}},H1={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.448ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 640 453","aria-hidden":"true"},L1={class:"MathJax",jax:"SVG",style:{position:"relative"}},c1={style:{"vertical-align":"-0.186ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.596ex",height:"1.692ex",role:"img",focusable:"false",viewBox:"0 -666 2473.6 748","aria-hidden":"true"},u1={class:"MathJax",jax:"SVG",style:{position:"relative"}},f1={style:{"vertical-align":"-0.09ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.596ex",height:"1.597ex",role:"img",focusable:"false",viewBox:"0 -666 2473.6 706","aria-hidden":"true"},M1={class:"MathJax",jax:"SVG",style:{position:"relative"}},x1={style:{"vertical-align":"-0.464ex"},xmlns:"http://www.w3.org/2000/svg",width:"15.781ex",height:"2.351ex",role:"img",focusable:"false",viewBox:"0 -833.9 6975.1 1038.9","aria-hidden":"true"};function Z1(V1,T){return t(),a("div",null,[T[83]||(T[83]=l('

微平面理论(二)


6. 法线分布函数详解

6.1 归一化约束

所有的法线分布函数都应该符合以下约束

',5)),Q("mjx-container",u,[(t(),a("svg",f,T[0]||(T[0]=[l('',1)]))),T[1]||(T[1]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"v"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("msub",null,[Q("mo",{"data-mjx-texclass":"OP"},"∫"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",{mathvariant:"normal"},"Ω")])]),Q("mi",null,"D"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"m"),Q("mo",{stretchy:"false"},")"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"v"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mi",null,"d"),Q("msub",null,[Q("mi",null,"ω"),Q("mi",null,"m")])])],-1))]),T[84]||(T[84]=Q("p",null,"可以理解为,这些为平面在某个指定方向上的投影面积,等于整体宏平面的投影面积",-1)),T[85]||(T[85]=Q("figure",null,[Q("img",{src:d,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),Q("p",null,[T[4]||(T[4]=m("当")),Q("mjx-container",M,[(t(),a("svg",x,T[2]||(T[2]=[l('',1)]))),T[3]||(T[3]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"v"),Q("mo",null,"="),Q("mi",null,"n")])],-1))]),T[5]||(T[5]=m("时,有"))]),Q("mjx-container",Z,[(t(),a("svg",V,T[6]||(T[6]=[l('',1)]))),T[7]||(T[7]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mn",null,"1"),Q("mo",null,"="),Q("msub",null,[Q("mo",{"data-mjx-texclass":"OP"},"∫"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",{mathvariant:"normal"},"Ω")])]),Q("mi",null,"D"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mi",null,"d"),Q("msub",null,[Q("mi",null,"ω"),Q("mi",null,"m")])])],-1))]),T[86]||(T[86]=Q("h3",{id:"_6-2-phong",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#_6-2-phong"},[Q("span",null,"6.2 Phong")])],-1)),Q("p",null,[T[16]||(T[16]=m("Phong模型认为,反射强度正比于")),Q("mjx-container",w,[(t(),a("svg",D,T[8]||(T[8]=[l('',1)]))),T[9]||(T[9]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mi",null,"α")])])],-1))]),T[17]||(T[17]=m(",其中")),Q("mjx-container",v,[(t(),a("svg",y,T[10]||(T[10]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D6FC",d:"M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"})])])],-1)]))),T[11]||(T[11]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α")])],-1))]),T[18]||(T[18]=m("表示材质的“光滑程度”,当")),Q("mjx-container",j,[(t(),a("svg",b,T[12]||(T[12]=[l('',1)]))),T[13]||(T[13]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α"),Q("mo",null,"="),Q("mn",null,"0")])],-1))]),T[19]||(T[19]=m(",材质是绝对的漫反射材质,当")),Q("mjx-container",O,[(t(),a("svg",R,T[14]||(T[14]=[l('',1)]))),T[15]||(T[15]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α"),Q("mo",{stretchy:"false"},"→"),Q("mi",{mathvariant:"normal"},"∞")])],-1))]),T[20]||(T[20]=m(",材质成为绝对光滑的镜面,设"))]),Q("mjx-container",C,[(t(),a("svg",k,T[21]||(T[21]=[l('',1)]))),T[22]||(T[22]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"D"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"p"),Q("mi",null,"h"),Q("mi",null,"o"),Q("mi",null,"n"),Q("mi",null,"g")])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("msub",null,[Q("mi",null,"R"),Q("mi",null,"p")]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mi",null,"α")])])],-1))]),T[87]||(T[87]=Q("p",null,"由上面法线分布函数的归一性可知",-1)),Q("mjx-container",A,[(t(),a("svg",B,T[23]||(T[23]=[l('',1)]))),T[24]||(T[24]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mn",null,"1"),Q("mo",null,"="),Q("msub",null,[Q("mo",{"data-mjx-texclass":"OP"},"∫"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",{mathvariant:"normal"},"Ω")])]),Q("msub",null,[Q("mi",null,"R"),Q("mi",null,"p")]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"α"),Q("mo",null,"+"),Q("mn",null,"1")])]),Q("mi",null,"d"),Q("msub",null,[Q("mi",null,"ω"),Q("mi",null,"m")])])],-1))]),Q("p",null,[T[27]||(T[27]=m("由于")),Q("mjx-container",X,[(t(),a("svg",G,T[25]||(T[25]=[l('',1)]))),T[26]||(T[26]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"d"),Q("msub",null,[Q("mi",null,"ω"),Q("mi",null,"m")]),Q("mo",null,"="),Q("mi",null,"sin"),Q("mo",{"data-mjx-texclass":"NONE"},"⁡"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"θ"),Q("mo",{stretchy:"false"},")"),Q("mi",null,"d"),Q("mi",null,"ϕ"),Q("mi",null,"d"),Q("mi",null,"θ")])],-1))])]),Q("mjx-container",F,[(t(),a("svg",S,T[28]||(T[28]=[l('',1)]))),T[29]||(T[29]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mn",null,"1"),Q("mo",null,"="),Q("msubsup",null,[Q("mo",{"data-mjx-texclass":"OP"},"∫"),Q("mn",null,"0"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mn",null,"2"),Q("mi",null,"π")])]),Q("msubsup",null,[Q("mo",{"data-mjx-texclass":"OP"},"∫"),Q("mn",null,"0"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"π"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"/")]),Q("mn",null,"2")])]),Q("msub",null,[Q("mi",null,"R"),Q("mi",null,"p")]),Q("msup",null,[Q("mi",null,"cos"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"α"),Q("mo",null,"+"),Q("mn",null,"1")])]),Q("mo",{"data-mjx-texclass":"NONE"},"⁡"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"θ"),Q("mo",{stretchy:"false"},")"),Q("mi",null,"sin"),Q("mo",{"data-mjx-texclass":"NONE"},"⁡"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"θ"),Q("mo",{stretchy:"false"},")"),Q("mi",null,"d"),Q("mi",null,"θ"),Q("mi",null,"d"),Q("mi",null,"ϕ"),Q("mo",null,"="),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mrow",null,[Q("mn",null,"2"),Q("mi",null,"π")]),Q("mrow",null,[Q("mn",null,"2"),Q("mo",null,"+"),Q("mi",null,"α")])])]),Q("msub",null,[Q("mi",null,"R"),Q("mi",null,"p")])])],-1))]),T[88]||(T[88]=Q("p",null,"可以得到最终D函数为",-1)),Q("mjx-container",E,[(t(),a("svg",J,T[30]||(T[30]=[l('',1)]))),T[31]||(T[31]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"D"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"p"),Q("mi",null,"h"),Q("mi",null,"o"),Q("mi",null,"n"),Q("mi",null,"g")])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mrow",null,[Q("mn",null,"2"),Q("mo",null,"+"),Q("mi",null,"α")]),Q("mrow",null,[Q("mn",null,"2"),Q("mi",null,"π")])])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mi",null,"α")])])],-1))]),Q("p",null,[T[34]||(T[34]=m("一般引擎用粗糙度(取值范围[0,1])表示材质的光滑程度,Phong模型中的")),Q("mjx-container",z,[(t(),a("svg",N,T[32]||(T[32]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D6FC",d:"M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"})])])],-1)]))),T[33]||(T[33]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α")])],-1))]),T[35]||(T[35]=m("常用如下公式计算"))]),Q("mjx-container",P,[(t(),a("svg",I,T[36]||(T[36]=[l('',1)]))),T[37]||(T[37]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"α"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"p"),Q("mi",null,"h"),Q("mi",null,"o"),Q("mi",null,"n"),Q("mi",null,"g")])]),Q("mo",null,"="),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mn",null,"2"),Q("mrow",null,[Q("mi",null,"r"),Q("mi",null,"o"),Q("mi",null,"u"),Q("mi",null,"g"),Q("mi",null,"h"),Q("mi",null,"n"),Q("mi",null,"e"),Q("mi",null,"s"),Q("msup",null,[Q("mi",null,"s"),Q("mn",null,"4")])])])]),Q("mo",null,"−"),Q("mn",null,"2")])],-1))]),T[89]||(T[89]=Q("p",null,"用Mathmatica绘制函数图",-1)),T[90]||(T[90]=Q("figure",null,[Q("img",{src:e,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[91]||(T[91]=Q("figure",null,[Q("img",{src:s,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[92]||(T[92]=Q("h3",{id:"_6-3-beckmann",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#_6-3-beckmann"},[Q("span",null,"6.3 Beckmann")])],-1)),T[93]||(T[93]=Q("p",null,"Beckmann的法线分布函数为",-1)),Q("mjx-container",W,[(t(),a("svg",U,T[38]||(T[38]=[l('',1)]))),T[39]||(T[39]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("msub",null,[Q("mi",null,"D"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"b"),Q("mi",null,"e"),Q("mi",null,"c"),Q("mi",null,"k"),Q("mi",null,"m"),Q("mi",null,"a"),Q("mi",null,"n"),Q("mi",null,"n")])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("msub",null,[Q("mi",null,"R"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"b"),Q("mi",null,"e"),Q("mi",null,"c"),Q("mi",null,"k"),Q("mi",null,"m"),Q("mi",null,"a"),Q("mi",null,"n"),Q("mi",null,"n")])]),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mn",null,"1"),Q("mrow",null,[Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"4")])])])]),Q("msup",null,[Q("mi",null,"e"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"−"),Q("mrow",{"data-mjx-texclass":"INNER"},[Q("mo",{"data-mjx-texclass":"OPEN"},"("),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mrow",null,[Q("mn",null,"1"),Q("mo",null,"−"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")])]),Q("mrow",null,[Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")])])])]),Q("mo",{"data-mjx-texclass":"CLOSE"},")")])])])])])])],-1))]),Q("p",null,[T[42]||(T[42]=m("经过积分计算")),Q("mjx-container",Y,[(t(),a("svg",q,T[40]||(T[40]=[l('',1)]))),T[41]||(T[41]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"R"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"b"),Q("mi",null,"e"),Q("mi",null,"c"),Q("mi",null,"k"),Q("mi",null,"m"),Q("mi",null,"a"),Q("mi",null,"n"),Q("mi",null,"n")])]),Q("mo",null,"="),Q("mn",null,"1"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"/")]),Q("mi",null,"π")])],-1))]),T[43]||(T[43]=m(",所以"))]),Q("mjx-container",K,[(t(),a("svg",$,T[44]||(T[44]=[l('',1)]))),T[45]||(T[45]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("msub",null,[Q("mi",null,"D"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"b"),Q("mi",null,"e"),Q("mi",null,"c"),Q("mi",null,"k"),Q("mi",null,"m"),Q("mi",null,"a"),Q("mi",null,"n"),Q("mi",null,"n")])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mn",null,"1"),Q("mrow",null,[Q("mi",null,"π"),Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"4")])])])]),Q("msup",null,[Q("mi",null,"e"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"−"),Q("mrow",{"data-mjx-texclass":"INNER"},[Q("mo",{"data-mjx-texclass":"OPEN"},"("),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mrow",null,[Q("mn",null,"1"),Q("mo",null,"−"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")])]),Q("mrow",null,[Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")])])])]),Q("mo",{"data-mjx-texclass":"CLOSE"},")")])])])])])])],-1))]),Q("p",null,[T[50]||(T[50]=m("Beckmann法线分布函数中,")),Q("mjx-container",_,[(t(),a("svg",Q1,T[46]||(T[46]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D6FC",d:"M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"})])])],-1)]))),T[47]||(T[47]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α")])],-1))]),T[51]||(T[51]=m("同样代表了材质的粗糙度,趋向于0时表示绝对光滑,取值却大约粗糙,但当取值超过1时,材质会变得“超级粗糙”(诡异),")),Q("mjx-container",T1,[(t(),a("svg",a1,T[48]||(T[48]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D6FC",d:"M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"})])])],-1)]))),T[49]||(T[49]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α")])],-1))]),T[52]||(T[52]=m("用如下公式获取"))]),Q("mjx-container",t1,[(t(),a("svg",m1,T[53]||(T[53]=[l('',1)]))),T[54]||(T[54]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"α"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"b"),Q("mi",null,"e"),Q("mi",null,"c"),Q("mi",null,"k"),Q("mi",null,"m"),Q("mi",null,"a"),Q("mi",null,"n"),Q("mi",null,"n")])]),Q("mo",null,"="),Q("mi",null,"r"),Q("mi",null,"o"),Q("mi",null,"u"),Q("mi",null,"g"),Q("mi",null,"h"),Q("mi",null,"n"),Q("mi",null,"e"),Q("mi",null,"s"),Q("msup",null,[Q("mi",null,"s"),Q("mn",null,"2")])])],-1))]),T[94]||(T[94]=Q("figure",null,[Q("img",{src:o,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[95]||(T[95]=Q("figure",null,[Q("img",{src:r,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),Q("p",null,[T[57]||(T[57]=m("当")),Q("mjx-container",l1,[(t(),a("svg",n1,T[55]||(T[55]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D6FC",d:"M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"})])])],-1)]))),T[56]||(T[56]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α")])],-1))]),T[58]||(T[58]=m("取值在0.5以下时,Beckmann模型和Phong模型的结果非常相似,这两个参数可以有如下对应关系"))]),Q("mjx-container",d1,[(t(),a("svg",e1,T[59]||(T[59]=[l('',1)]))),T[60]||(T[60]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"α"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"p"),Q("mi",null,"h"),Q("mi",null,"o"),Q("mi",null,"n"),Q("mi",null,"g")])]),Q("mo",null,"="),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mn",null,"2"),Q("msubsup",null,[Q("mi",null,"α"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"b"),Q("mi",null,"e"),Q("mi",null,"c"),Q("mi",null,"k"),Q("mi",null,"m"),Q("mi",null,"a"),Q("mi",null,"n"),Q("mi",null,"n")]),Q("mn",null,"2")])])]),Q("mo",null,"−"),Q("mn",null,"2")])],-1))]),T[96]||(T[96]=Q("figure",null,[Q("img",{src:g,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[97]||(T[97]=Q("figure",null,[Q("img",{src:h,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[98]||(T[98]=Q("h3",{id:"_6-4-trowbridge-reitz-ggx",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#_6-4-trowbridge-reitz-ggx"},[Q("span",null,"6.4 Trowbridge-Reitz(GGX)")])],-1)),T[99]||(T[99]=Q("p",null,"这个模型又被称为GGX模型,是UnrealEngine采用的法线分布函数",-1)),Q("mjx-container",s1,[(t(),a("svg",o1,T[61]||(T[61]=[l('',1)]))),T[62]||(T[62]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"D"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"G"),Q("mi",null,"G"),Q("mi",null,"X")])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("msub",null,[Q("mi",null,"R"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"G"),Q("mi",null,"G"),Q("mi",null,"X")])]),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("mn",null,"1"),Q("mrow",null,[Q("mo",{stretchy:"false"},"("),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},"("),Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("mn",null,"1"),Q("mo",{stretchy:"false"},")"),Q("mo",null,"+"),Q("mn",null,"1"),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")])])])])])],-1))]),Q("p",null,[T[65]||(T[65]=m("经过积分")),Q("mjx-container",r1,[(t(),a("svg",g1,T[63]||(T[63]=[l('',1)]))),T[64]||(T[64]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"R"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"G"),Q("mi",null,"G"),Q("mi",null,"X")])]),Q("mo",null,"="),Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")]),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"/")]),Q("mi",null,"π")])],-1))]),T[66]||(T[66]=m(",所以"))]),Q("mjx-container",h1,[(t(),a("svg",i1,T[67]||(T[67]=[l('',1)]))),T[68]||(T[68]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("msub",null,[Q("mi",null,"D"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",null,"G"),Q("mi",null,"G"),Q("mi",null,"X")])]),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"="),Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mfrac",null,[Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")]),Q("mrow",null,[Q("mi",null,"π"),Q("mo",{stretchy:"false"},"("),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"n"),Q("mo",{stretchy:"false"},"→")])]),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"m"),Q("mo",{stretchy:"false"},"→")])]),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")]),Q("mo",{stretchy:"false"},"("),Q("msup",null,[Q("mi",null,"α"),Q("mn",null,"2")]),Q("mo",null,"−"),Q("mn",null,"1"),Q("mo",{stretchy:"false"},")"),Q("mo",null,"+"),Q("mn",null,"1"),Q("msup",null,[Q("mo",{stretchy:"false"},")"),Q("mn",null,"2")])])])])])],-1))]),T[100]||(T[100]=Q("p",null,"在Mathmatica中的模拟",-1)),T[101]||(T[101]=Q("figure",null,[Q("img",{src:i,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[102]||(T[102]=Q("figure",null,[Q("img",{src:p,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),Q("p",null,[T[75]||(T[75]=m("可以看出,当")),Q("mjx-container",p1,[(t(),a("svg",H1,T[69]||(T[69]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D6FC",d:"M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"})])])],-1)]))),T[70]||(T[70]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α")])],-1))]),T[76]||(T[76]=m("趋向于0,表示材质越光滑,当")),Q("mjx-container",L1,[(t(),a("svg",c1,T[71]||(T[71]=[l('',1)]))),T[72]||(T[72]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α"),Q("mo",null,"="),Q("mn",null,"1")])],-1))]),T[77]||(T[77]=m("时,GGX称为一条直线,也就是纯粹的漫反射材质,当")),Q("mjx-container",u1,[(t(),a("svg",f1,T[73]||(T[73]=[l('',1)]))),T[74]||(T[74]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α"),Q("mo",null,">"),Q("mn",null,"1")])],-1))]),T[78]||(T[78]=m(",GGX模型的表现类似于Beckmann,表现出“超级粗糙”特性。 和Phong模型比较,可以看出在粗糙度小于0.4时,ggx和phong模型比较类似,当粗糙度大于0.4时,ggx的表现更“平顺”一些,高光中心更集中,但长尾区域更长。"))]),T[103]||(T[103]=Q("figure",null,[Q("img",{src:H,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),T[104]||(T[104]=Q("figure",null,[Q("img",{src:L,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption")],-1)),Q("p",null,[T[81]||(T[81]=m("在Unreal实现中,定义了")),Q("mjx-container",M1,[(t(),a("svg",x1,T[79]||(T[79]=[l('',1)]))),T[80]||(T[80]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"α"),Q("mo",null,"="),Q("mi",null,"r"),Q("mi",null,"o"),Q("mi",null,"u"),Q("mi",null,"g"),Q("mi",null,"h"),Q("mi",null,"n"),Q("mi",null,"e"),Q("mi",null,"s"),Q("msup",null,[Q("mi",null,"s"),Q("mn",null,"2")])])],-1))]),T[82]||(T[82]=m(", roughness是用户输入的材质粗糙度,范围在[0,1]之间"))])])}const D1=n(c,[["render",Z1],["__file","microfacets_2.html.vue"]]),v1=JSON.parse('{"path":"/note/graphics/illumination_model/microfacets/microfacets_2.html","title":"微平面理论(二)","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"6. 法线分布函数详解","slug":"_6-法线分布函数详解","link":"#_6-法线分布函数详解","children":[{"level":3,"title":"6.1 归一化约束","slug":"_6-1-归一化约束","link":"#_6-1-归一化约束","children":[]},{"level":3,"title":"6.2 Phong","slug":"_6-2-phong","link":"#_6-2-phong","children":[]},{"level":3,"title":"6.3 Beckmann","slug":"_6-3-beckmann","link":"#_6-3-beckmann","children":[]},{"level":3,"title":"6.4 Trowbridge-Reitz(GGX)","slug":"_6-4-trowbridge-reitz-ggx","link":"#_6-4-trowbridge-reitz-ggx","children":[]}]}],"git":{},"filePathRelative":"note/graphics/illumination_model/microfacets/microfacets_2.md"}');export{D1 as comp,v1 as data};