mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 23:04:35 +00:00
Clean up Default Precision subsection
This commit is contained in:
parent
e789f620dc
commit
4a64bb7a63
@ -312,7 +312,7 @@ precision mediump int;
|
|||||||
precision highp float;
|
precision highp float;
|
||||||
\end{glslcode}
|
\end{glslcode}
|
||||||
|
|
||||||
To use the default precision functionality, GLM provides some defines that need to add before any include of glm.hpp:
|
To set the default precision of a given arithmetic type, use any one of the following defines:
|
||||||
|
|
||||||
\begin{cppcode}
|
\begin{cppcode}
|
||||||
#define GLM_PRECISION_MEDIUMP_INT
|
#define GLM_PRECISION_MEDIUMP_INT
|
||||||
@ -330,7 +330,7 @@ Available defines for floating point types (\verb|glm::vec|*, \verb|glm::mat|*):
|
|||||||
\item \verb|GLM_PRECISION_HIGHP_FLOAT|: High precision (default)
|
\item \verb|GLM_PRECISION_HIGHP_FLOAT|: High precision (default)
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
Available defines for floating point types (\verb|glm::dvec|*, \verb|glm::dmat|*):
|
Available defines for double-precision floating point types (\verb|glm::dvec|*, \verb|glm::dmat|*):
|
||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item \verb|GLM_PRECISION_LOWP_DOUBLE|: Low precision
|
\item \verb|GLM_PRECISION_LOWP_DOUBLE|: Low precision
|
||||||
|
Loading…
Reference in New Issue
Block a user