|
A datablock describing an individual decal. More...
Public Member Functions | |
void | postApply () |
Reloads imagemap textures for this DecalData. | |
Public Attributes | |
Rendering | |
float | clippingAngle |
The angle in degrees used to clip geometry that faces away from the decal projection direction. | |
float | fadeEndPixelSize |
LOD value - size in pixels at which decals of this type are fully faded out. This should be a smaller value than fadeStartPixelSize. | |
float | fadeStartPixelSize |
LOD value - size in pixels at which decals of this type begin to fade out. This should be a larger value than fadeEndPixelSize. However, you may also set this to a negative value to disable lod-based fading. | |
char | renderPriority |
Default renderPriority for decals of this type. | |
Decal | |
int | fadeTime |
Milliseconds of sim time for decal to fade after expiration. | |
int | lifeSpan |
Milliseconds of sim time for decal to expire. | |
string | Material |
Material for this decal type. | |
float | size |
Width/height in meters before scale is applied. | |
Texturing | |
int | frame |
Index of texture rectangle to use for this decal. | |
bool | randomize |
If true, a random texture rectangle is picked for each instance of this decal. | |
int | texCols |
Number of columns on the supplied imagemap. | |
int | texRows |
Number of rows on the supplied imagemap. | |
int | textureCoordCount |
Number of individual frames in this imagemap. | |
RectF | textureCoords [16] |
A RectF in uv space - eg ( topleft.x topleft.y extent.x extent.y ). |
A datablock describing an individual decal.
void DecalData::postApply | ( | ) |
Reloads imagemap textures for this DecalData.
// Inform the decal object to reload its imagemap and frame data.
%decalData.postApply();
float DecalData::clippingAngle |
The angle in degrees used to clip geometry that faces away from the decal projection direction.
LOD value - size in pixels at which decals of this type are fully faded out. This should be a smaller value than fadeStartPixelSize.
LOD value - size in pixels at which decals of this type begin to fade out. This should be a larger value than fadeEndPixelSize. However, you may also set this to a negative value to disable lod-based fading.
Milliseconds of sim time for decal to fade after expiration.
int DecalData::frame |
Index of texture rectangle to use for this decal.
Milliseconds of sim time for decal to expire.
string DecalData::Material |
Material for this decal type.
bool DecalData::randomize |
If true, a random texture rectangle is picked for each instance of this decal.
Default renderPriority for decals of this type.
float DecalData::size |
Width/height in meters before scale is applied.
Number of columns on the supplied imagemap.
Number of rows on the supplied imagemap.
Number of individual frames in this imagemap.
RectF DecalData::textureCoords[16] |
A RectF in uv space - eg ( topleft.x topleft.y extent.x extent.y ).