Schlick's approximation: Difference between revisions
No edit summary |
Patar knight (talk | contribs) Adding local short description: "Lighting formula in 3D computer graphics", overriding Wikidata description "Schlick's approximation" |
||
(35 intermediate revisions by 26 users not shown) | |||
Line 1: | Line 1: | ||
{{Short description|Lighting formula in 3D computer graphics}} |
|||
{{expert|date=February 2012}} |
|||
In [[3D computer graphics]], ''' |
In [[3D computer graphics]], '''Schlick’s approximation''', named after Christophe Schlick, is a formula for approximating the contribution of the [[Fresnel equation|Fresnel factor]] in the [[specular reflection]] of light from a non-conducting interface (surface) between two media.<ref>{{cite journal | year = 1994 | title = An Inexpensive BRDF Model for Physically-based Rendering | journal = Computer Graphics Forum | volume = 13 | issue = 3 | pages = 233–246 |url=http://cs.virginia.edu/~jdl/bib/appearance/analytic%20models/schlick94b.pdf |archive-url=https://web.archive.org/web/20200510114532/http://cs.virginia.edu/~jdl/bib/appearance/analytic%20models/schlick94b.pdf |archive-date=2020-05-10 | doi = 10.1111/1467-8659.1330233 | last1 = Schlick | first1 = C.| citeseerx = 10.1.1.12.5173 | s2cid = 7825646 }}</ref> |
||
According to |
According to Schlick’s model, the specular [[reflection coefficient]] ''R'' can be approximated by: |
||
<math display="block"> R(\theta) = R_0 + (1 - R_0)(1 - \cos \theta)^5 </math> where <math display="block"> R_0 = \left(\frac{n_1-n_2}{n_1+n_2}\right)^2</math> |
|||
where <math>\theta</math> is half the angle between the incoming and outgoing light directions. And <math>n_1,\,n_2</math> are the [[Index of refraction|indices of refraction]] of the two media at the interface and <math>R_0</math> is the reflection coefficient for light incoming parallel to the normal (i.e., the value of the Fresnel term when <math>\theta = 0</math> or minimal reflection). In computer graphics, one of the interfaces is usually air, meaning that <math>n_1</math> very well can be approximated as 1. |
|||
In [[Specular highlight#Microfacets|microfacet model]]s it is assumed that there is always a perfect reflection, but the normal changes according to a certain distribution, resulting in a non-perfect overall reflection. When using Schlick’s approximation, the normal in the above computation is replaced by the [[Blinn–Phong shading model|halfway vector]]. Either the viewing or light direction can be used as the second vector.<ref>{{cite journal|last1=Hoffman|first1=Naty|title=Background: Physics and Math of Shading.|journal=Fourth International Conference and Exhibition on Computer Graphics and Interactive Techniques|date=2013|url=http://blog.selfshadow.com/publications/s2012-shading-course/hoffman/s2012_pbs_physics_math_notes.pdf}}</ref> |
|||
:<math>R(\theta) = R_0 + (1 - R_0)(1 - \cos \theta)^5</math> |
|||
where <math>\theta</math> is half the angle between the incoming and outgoing light directions, and <math>R_0</math> is the reflectance at normal incidence (i.e., the value of the Fresnel term when <math>\theta = 0</math> or minimal reflection).{{elucidate|date=February 2012}} |
|||
==See also== |
==See also== |
||
{{portal|Computer graphics}} |
|||
* [[Phong reflection model]] |
* [[Phong reflection model]] |
||
* [[Blinn-Phong shading model]] |
* [[Blinn-Phong shading model]] |
||
Line 15: | Line 15: | ||
==References== |
==References== |
||
{{Reflist}} |
|||
* {{cite doi|10.1111/1467-8659.1330233}} |
|||
[[Category:3D computer graphics]] |
[[Category:3D computer graphics]] |
||
{{compu-graphics-stub}} |
{{compu-graphics-stub}} |
Latest revision as of 17:43, 26 December 2024
In 3D computer graphics, Schlick’s approximation, named after Christophe Schlick, is a formula for approximating the contribution of the Fresnel factor in the specular reflection of light from a non-conducting interface (surface) between two media.[1]
According to Schlick’s model, the specular reflection coefficient R can be approximated by: where where is half the angle between the incoming and outgoing light directions. And are the indices of refraction of the two media at the interface and is the reflection coefficient for light incoming parallel to the normal (i.e., the value of the Fresnel term when or minimal reflection). In computer graphics, one of the interfaces is usually air, meaning that very well can be approximated as 1.
In microfacet models it is assumed that there is always a perfect reflection, but the normal changes according to a certain distribution, resulting in a non-perfect overall reflection. When using Schlick’s approximation, the normal in the above computation is replaced by the halfway vector. Either the viewing or light direction can be used as the second vector.[2]
See also
[edit]References
[edit]- ^ Schlick, C. (1994). "An Inexpensive BRDF Model for Physically-based Rendering" (PDF). Computer Graphics Forum. 13 (3): 233–246. CiteSeerX 10.1.1.12.5173. doi:10.1111/1467-8659.1330233. S2CID 7825646. Archived from the original (PDF) on 2020-05-10.
- ^ Hoffman, Naty (2013). "Background: Physics and Math of Shading" (PDF). Fourth International Conference and Exhibition on Computer Graphics and Interactive Techniques.