MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / wrapCoordScalar

Function wrapCoordScalar

TheForceEngine/Shaders/textureSampleFunc.h:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int wrapCoordScalar(int x, int edge)
34{
35 x = x - (x / edge)*edge;
36 x += (x < 0) ? edge : 0;
37 return x;
38}
39
40ivec2 wrapCoord(ivec2 uv, ivec2 edge)
41{

Callers 1

sampleTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected