MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Saturate

Function Saturate

SampleFramework12/v1.00/SF12_Math.h:558–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556
557// Clamps a value to [0, 1]
558template<typename T> T Saturate(T val)
559{
560 return Clamp<T>(val, T(0.0f), T(1.0f));
561}
562
563inline Float3 Saturate(Float3 val)
564{

Callers 10

UpdateDecalsMethod · 0.85
UpdateLightsMethod · 0.85
SmoothstepFunction · 0.85
FilterTriangle1DFunction · 0.85
FilterBlackmanHarris1DFunction · 0.85
SampleDirectionGGX_PDFFunction · 0.85
FresnelFunction · 0.85
GGX_SpecularFunction · 0.85
CalcLightingFunction · 0.85
InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected