BGE modifier: last minute commit to fix a nasty bug with modifers messing the alpha blend mode of the GE. Note the alpha sorting on modified mesh is not implemented so derived mesh should not have alpha faces (clip will work though). Incidently fixed a performance problem in GLSL where the derived mesh was possibly rendered multiple times. Modifier support is still a bit experimental and should not be used in production game.
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include "GEN_HashedPtr.h"
|
||||
|
||||
struct Mesh;
|
||||
class RAS_Deformer;
|
||||
|
||||
/* RAS_MeshObject is a mesh used for rendering. It stores polygons,
|
||||
* but the actual vertices and index arrays are stored in material
|
||||
@@ -130,7 +131,7 @@ public:
|
||||
RAS_Polygon* GetPolygon(int num) const;
|
||||
|
||||
/* buckets */
|
||||
virtual void AddMeshUser(void *clientobj, SG_QList *head);
|
||||
virtual void AddMeshUser(void *clientobj, SG_QList *head, RAS_Deformer* deformer);
|
||||
virtual void UpdateBuckets(
|
||||
void* clientobj,
|
||||
double* oglmatrix,
|
||||
|
Reference in New Issue
Block a user