MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetNormal

Method SetNormal

source/common/rendering/i_modelvertexbuffer.h:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void SetNormal(float nx, float ny, float nz)
29 {
30 int inx = clamp(int(nx * 512), -512, 511);
31 int iny = clamp(int(ny * 512), -512, 511);
32 int inz = clamp(int(nz * 512), -512, 511);
33 int inw = 0;
34 packedNormal = (inw << 30) | ((inz & 1023) << 20) | ((iny & 1023) << 10) | (inx & 1023);
35 }
36
37 void SetBoneSelector(int x, int y, int z, int w)
38 {

Callers 8

DrawSpriteMethod · 0.45
DrawWallMethod · 0.45
DrawFlatMethod · 0.45
BuildVertexBufferMethod · 0.45
BuildVertexBufferMethod · 0.45
BuildVertexBufferMethod · 0.45
LoadNormalMethod · 0.45
BuildVertexBufferMethod · 0.45

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected