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

Function FilterBox1D

SampleFramework12/v1.00/Graphics/Filtering.h:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16inline float FilterBox1D(float x)
17{
18 x = std::abs(x);
19 return x <= 1.0f ? 1.0f : 0.0f;
20}
21
22inline float FilterBox2D(Float2 xy)
23{

Callers 2

FilterBox2DFunction · 0.85
FilterCircle2DFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected