Template:Glapi texture comparison funcs: Difference between revisions
Jump to navigation
Jump to search
template for GLAPI. |
m Formatting fix. |
||
| Line 4: | Line 4: | ||
! '''Computed result''' | ! '''Computed result''' | ||
|+ | |+ | ||
| {{ | | {{enum|GL_LEQUAL}} | ||
| <math>result = | | <math>result = | ||
\begin{cases} | \begin{cases} | ||
| Line 11: | Line 11: | ||
\end{cases}</math> | \end{cases}</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_GEQUAL}} | ||
| <math>result = | | <math>result = | ||
\begin{cases} | \begin{cases} | ||
| Line 18: | Line 18: | ||
\end{cases}</math> | \end{cases}</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_LESS}} | ||
| <math>result = | | <math>result = | ||
\begin{cases} | \begin{cases} | ||
| Line 25: | Line 25: | ||
\end{cases}</math> | \end{cases}</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_GREATER}} | ||
| <math>result = | | <math>result = | ||
\begin{cases} | \begin{cases} | ||
| Line 32: | Line 32: | ||
\end{cases}</math> | \end{cases}</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_EQUAL}} | ||
| <math>result = | | <math>result = | ||
\begin{cases} | \begin{cases} | ||
| Line 39: | Line 39: | ||
\end{cases}</math> | \end{cases}</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_NOTEQUAL}} | ||
| <math>result = | | <math>result = | ||
\begin{cases} | \begin{cases} | ||
| Line 46: | Line 46: | ||
\end{cases}</math> | \end{cases}</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_ALWAYS}} | ||
| <math>result = 1.0</math> | | <math>result = 1.0</math> | ||
|+ | |+ | ||
| {{ | | {{enum|GL_NEVER}} | ||
| <math>result = 0.0</math> | | <math>result = 0.0</math> | ||
|} | |} | ||
Revision as of 00:41, 28 October 2012
| Texture Comparison Function | Computed result |
|---|---|
| GL_LEQUAL | $ result={\begin{cases}1.0,&r\leq D_{t}\\0.0,&r>D_{t}\end{cases}} $ |
| GL_GEQUAL | $ result={\begin{cases}1.0,&r\geq D_{t}\\0.0,&r<D_{t}\end{cases}} $ |
| GL_LESS | $ result={\begin{cases}1.0,&r<D_{t}\\0.0,&r\geq D_{t}\end{cases}} $ |
| GL_GREATER | $ result={\begin{cases}1.0,&r>D_{t}\\0.0,&r\leq D_{t}\end{cases}} $ |
| GL_EQUAL | $ result={\begin{cases}1.0,&r=D_{t}\\0.0,&r\neq D_{t}\end{cases}} $ |
| GL_NOTEQUAL | $ result={\begin{cases}1.0,&r\neq D_{t}\\0.0,&r=D_{t}\end{cases}} $ |
| GL_ALWAYS | $ result=1.0 $ |
| GL_NEVER | $ result=0.0 $ |