VoxelFarm::CMaterial Struct Reference

A material definition for the VoxelFarm.com engine. More...

#include <MaterialLibrary.h>

Public Attributes

int id
 Identifies the material family.
 
int medium
 Indentifies to which medium the material belongs to.
 
char diffuse [MAX_PATH]
 Path to a BMP image for the diffuse map.
 
int diffuseMapIndex
 Index in the texture array for diffuse map.
 
char normal [MAX_PATH]
 Path to a BMP image for the normal map.
 
int normalMapIndex
 Index in the texture array for diffuse map.
 
int displacementMapIndex
 Index in the texture array for displacement map intensity.
 
int displacementNormalMapIndex
 Index in the texture array for displacement map normal.
 
int resolution
 Controls how many polygons the material takes on screen. Zero has the highest polygon density possible.
 
int maxlevel
 Maximum level at which the material will be displayed.
 
double simplificationError
 Maximum simplification error allowed for the material.
 
int carved
 Which material will be set when this material is carved.
 
double angleMin
 Minimum slope angle for the material to be applied.
 
double angleMax
 Maximum slope angle for the material to be applied.
 
double faceSmoothAngle
 Neighboring faces will have their normals smoothen if they are below this separation angle.
 
double selfIllumination
 A value from zero to one specifying how much lightign conditions affect the appearance of the material. A value of one makes the material not affected by external light.
 
double nearFreq
 Texture tiling frequency for the near range of the material.
 
double farFreq
 Texture tiling frequency for the mid range of the material.
 
double macroFreq
 Texture tiling frequency for the far range of the material.
 
unsigned int applyColor
 Tints the material using the blue channel as a mask and the red channel as an intensity.
 
double snowLine
 Altitude at which the material begins to show snow.
 
double maxEdgeLength
 Maximum edge length.
 
bool homogeneous
 
bool blend
 
int wearMaterial
 
int layeredMaterial
 
double layeredMaterialAngle
 
bool transparent
 
int billboard
 Identifier for the billboard texture to be placed on top of the material.
 
int billboardType
 Billboard type. Zero is standing up, like grass. One is around the object, like foliage.
 
double billboardAngleMin
 Minimum slope angle for the billboards to be applied.
 
double billboardAngleMax
 Maximum slope angle for the billboards to be applied.
 
double billboardSize
 Scale of the billboard. Default is one.
 
double billboardRigidity
 Controls how much the billboard is affected by wind.
 
double billboardDensity
 Controls billboard density. Smaller values will produce higher density;.
 
bool useMacroColor
 
IMacroColorSourcemacroColor
 
char displacement [MAX_PATH]
 Path to a displacement map.
 
char displacementNormal [MAX_PATH]
 Path to a normal map for the material displacement.
 
double displacementSize
 Size of the displacement effect.
 
double displacementShift
 Additional value for the displacement map.
 
double displacementFreq
 Frequency of the displacement tiling.
 
unsigned char * displacementMap
 Contains the values read from the displacement map.
 
int placementType
 Type of placement mask. Only one type is currently supported, zero, which is a Perlin noise.
 
double placementFreq
 Frequency of the placement noise.
 
double placementStep
 Amplitude multiplier of the placement noise.
 
double placementLacunarity
 Frequency multiplier of the placement noise.
 
double placementPhaseX
 Phase along X axis of placement noise.
 
double placementPhaseY
 Phase along Y axis of placement noise.
 
double placementPhaseZ
 Phase along Z axis of placement noise.
 
int placementOctaves
 Number of octaves in placement noise.
 
double placementScaleX
 Scale along X axis of placement noise.
 
double placementScaleY
 Scale along Y axis of placement noise.
 
double placementScaleZ
 Scale along Z axis of placement noise.
 
double placementClampMin
 Placement noise clamp minimum.
 
double placementClampMax
 Placement noise clamp maximum.
 
int instanceMaskMode
 Used to mask the material by using the instance map.
 
double heightMin
 Minimum world height at which the material could appear.
 
double heightMax
 Maximum world height at which the material could appear.
 
double colorH
 Used for material HSV colorization, determines the H (hue) component for the base color.
 
double colorS
 Used for material HSV colorization, determines the S (saturation) component for the base color.
 
double colorV
 Used for material HSV colorization, determines the V (value) component for the base color.
 
double colorFreqX
 Used for material HSV colorization, determines the frequency at which components change over the X axis.
 
double colorFreqY
 Used for material HSV colorization, determines the frequency at which components change over the Y axis.
 
double colorFreqZ
 Used for material HSV colorization, determines the frequency at which components change over the Z axis.
 
double colorDeltaH
 Used for material HSV colorization, determines the range of variation for the H (hue) component.
 
double colorDeltaS
 Used for material HSV colorization, determines the range of variation for the S (saturation) component.
 
double colorDeltaV
 Used for material HSV colorization, determines the range of variation for the V (value) component.
 
TVector< int > * subMaterials
 
int instanceCount
 Number of material instance types.
 
InstanceDescriptor instances [MAX_INSTANCES]
 Material instance definition.
 
char stepSoundId [MAX_PATH]
 
int stepSoundCount
 
char digSoundId [MAX_PATH]
 
int digSoundCount
 
int materialType
 

Static Public Attributes

static const int MAX_INSTANCES = 20
 Maximum amount of different material instance types.
 

Detailed Description

A material definition for the VoxelFarm.com engine.

Definition at line 47 of file MaterialLibrary.h.


The documentation for this struct was generated from the following file: