voxelman.world.mesh.sidemeshers.utils

Members

Functions

calcColor
ubvec3 calcColor(ushort index, ubvec3 color)
Undocumented in source. Be warned that the author may not have intended to support it.
calcRandomTint
float calcRandomTint(ushort index)
Undocumented in source. Be warned that the author may not have intended to support it.
getDebugAOColors
ubyte[3][4] getDebugAOColors(ubyte[4] cornerOcclusion)
Undocumented in source. Be warned that the author may not have intended to support it.
meshColoredQuad
void meshColoredQuad(Buffer!MeshVertex buffer, ubyte[3][4] cornerColors, ubvec3 offset, ubyte[4] indices, T[3]* vertieces)
Undocumented in source. Be warned that the author may not have intended to support it.
meshOccludedQuad
void meshOccludedQuad(Buffer!MeshVertex buffer, ubyte[4] cornerOcclusion, float[3] color, ubyte[2] uv, ubvec3 offset, ubyte[4] indices, T[3]* vertieces)
Undocumented in source. Be warned that the author may not have intended to support it.
meshQuadUvGray
void meshQuadUvGray(Buffer!MeshVertex buffer, ubyte[4] cornerColors, ubyte[2][4] cornerUVs, ubvec3 offset, ubyte[4] indices, T[3]* vertieces)
Undocumented in source. Be warned that the author may not have intended to support it.
random
float random(uint num)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

AO_COLOR_0
enum AO_COLOR_0;
Undocumented in source.
AO_COLOR_1
enum AO_COLOR_1;
Undocumented in source.
AO_COLOR_2
enum AO_COLOR_2;
Undocumented in source.
AO_COLOR_3
enum AO_COLOR_3;
Undocumented in source.
AO_VALUE_0
enum AO_VALUE_0;
Undocumented in source.
AO_VALUE_1
enum AO_VALUE_1;
Undocumented in source.
AO_VALUE_2
enum AO_VALUE_2;
Undocumented in source.
AO_VALUE_3
enum AO_VALUE_3;
Undocumented in source.

Structs

SideParams
struct SideParams
Undocumented in source.

Variables

aoDebugColors
Color4ub[] aoDebugColors;
Undocumented in source.
occlusionTable
float[] occlusionTable;
Undocumented in source.
shadowMultipliers
float[] shadowMultipliers;
Undocumented in source.

Meta

Authors

Andrey Penechko.