#include <vegetable_shape.h>
Nevrax France
Definition at line 46 of file vegetable_shape.h.
Public Types | |
enum | TBendCenterMode { BendCenterNull = 0, BendCenterZ, BendCenterModeCount } |
Public Member Functions | |
CVegetableShapeBuild () | |
Data Fields | |
bool | AlphaBlend |
TBendCenterMode | BendCenterMode |
The BendCenter mode. | |
bool | BestSidedPreComputeLighting |
bool | DoubleSided |
If this shape must be 2Sided. | |
bool | Lighted |
If this shape must be lighted. | |
float | MaxBendWeight |
The maximum BendWeight to apply. | |
CPrimitiveBlock | PB |
only triangles of PB are used. | |
bool | PreComputeLighting |
if Lighted && PreComputeLighting, lighting is precomputed per instance. | |
CVertexBuffer | VB |
|
Bend center controls how each vertex is bended. BendCenterNull: For each Center of bend is made on (0,0,0). BendCenterZ: Center of bend is made on (vertx, verty, 0), perfect for "comb-like" vegetation. Definition at line 54 of file vegetable_shape.h.
00054 {BendCenterNull=0, BendCenterZ, BendCenterModeCount}; |
|
Definition at line 86 of file vegetable_shape.h. References AlphaBlend, BendCenterMode, BendCenterNull, BestSidedPreComputeLighting, DoubleSided, Lighted, MaxBendWeight, and PreComputeLighting.
00087 { 00088 Lighted= false; 00089 DoubleSided= false; 00090 PreComputeLighting= false; 00091 AlphaBlend= false; 00092 BestSidedPreComputeLighting= false; 00093 MaxBendWeight= 0; 00094 BendCenterMode= BendCenterNull; 00095 } |
|
If this shape must be AlphaBlended (and hence ZSorted). NB: valid ONLY if (!Lighted || PreComputeLighting) && DoubleSided. Definition at line 74 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
The BendCenter mode.
Definition at line 83 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
true If this shape must take one sided lighting. ie max(normal, -normal) is computed during ligthing compute NB: valid ONLY if (PreComputeLighting) Definition at line 79 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
If this shape must be 2Sided.
Definition at line 70 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
If this shape must be lighted.
Definition at line 66 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
The maximum BendWeight to apply.
Definition at line 81 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
only triangles of PB are used.
Definition at line 64 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(). |
|
if Lighted && PreComputeLighting, lighting is precomputed per instance.
Definition at line 68 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(), and CVegetableShapeBuild(). |
|
The standard input vertexBuffer If it has vertexColor, then BendWeight is read from color.R, and scale to take MaxBendWeight at max. else, BendWeight is read from pos.z (clamped to (0, maxZ), and scaled to take MaxBendWeight at max. If it has normal, and Lighted==true, then it is lighted. Must have TexCoord0. Definition at line 62 of file vegetable_shape.h. Referenced by NL3D::CVegetableShape::build(). |