|
@@ -108,7 +108,7 @@ public:
|
|
|
Drawable* drawable = *start++;
|
|
Drawable* drawable = *start++;
|
|
|
unsigned char flags = drawable->GetDrawableFlags();
|
|
unsigned char flags = drawable->GetDrawableFlags();
|
|
|
|
|
|
|
|
- if ((flags == DRAWABLE_ZONE || ((flags == DRAWABLE_GEOMETRY || flags == DRAWABLE_PROXYGEOMETRY) &&
|
|
|
|
|
|
|
+ if ((flags == DRAWABLE_ZONE || ((flags == DRAWABLE_GEOMETRY || flags == DRAWABLE_RENDERER2D) &&
|
|
|
drawable->IsOccluder())) && (drawable->GetViewMask() & viewMask_))
|
|
drawable->IsOccluder())) && (drawable->GetViewMask() & viewMask_))
|
|
|
{
|
|
{
|
|
|
if (inside || frustum_.IsInsideFast(drawable->GetWorldBoundingBox()))
|
|
if (inside || frustum_.IsInsideFast(drawable->GetWorldBoundingBox()))
|
|
@@ -198,7 +198,7 @@ void CheckVisibilityWork(const WorkItem* item, unsigned threadIndex)
|
|
|
drawable->MarkInView(view->frame_);
|
|
drawable->MarkInView(view->frame_);
|
|
|
|
|
|
|
|
// For geometries, find zone, clear lights and calculate view space Z range
|
|
// For geometries, find zone, clear lights and calculate view space Z range
|
|
|
- if (drawable->GetDrawableFlags() & (DRAWABLE_GEOMETRY | DRAWABLE_PROXYGEOMETRY))
|
|
|
|
|
|
|
+ if (drawable->GetDrawableFlags() & (DRAWABLE_GEOMETRY | DRAWABLE_RENDERER2D))
|
|
|
{
|
|
{
|
|
|
Zone* drawableZone = drawable->GetZone();
|
|
Zone* drawableZone = drawable->GetZone();
|
|
|
if (!cameraZoneOverride && (drawable->IsZoneDirty() || !drawableZone || (drawableZone->GetViewMask() &
|
|
if (!cameraZoneOverride && (drawable->IsZoneDirty() || !drawableZone || (drawableZone->GetViewMask() &
|
|
@@ -784,12 +784,12 @@ void View::GetDrawables()
|
|
|
if (occlusionBuffer_)
|
|
if (occlusionBuffer_)
|
|
|
{
|
|
{
|
|
|
OccludedFrustumOctreeQuery query(tempDrawables, camera_->GetFrustum(), occlusionBuffer_, DRAWABLE_GEOMETRY |
|
|
OccludedFrustumOctreeQuery query(tempDrawables, camera_->GetFrustum(), occlusionBuffer_, DRAWABLE_GEOMETRY |
|
|
|
- DRAWABLE_PROXYGEOMETRY | DRAWABLE_LIGHT, camera_->GetViewMask());
|
|
|
|
|
|
|
+ DRAWABLE_RENDERER2D | DRAWABLE_LIGHT, camera_->GetViewMask());
|
|
|
octree_->GetDrawables(query);
|
|
octree_->GetDrawables(query);
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- FrustumOctreeQuery query(tempDrawables, camera_->GetFrustum(), DRAWABLE_GEOMETRY | DRAWABLE_PROXYGEOMETRY |
|
|
|
|
|
|
|
+ FrustumOctreeQuery query(tempDrawables, camera_->GetFrustum(), DRAWABLE_GEOMETRY | DRAWABLE_RENDERER2D |
|
|
|
DRAWABLE_LIGHT, camera_->GetViewMask());
|
|
DRAWABLE_LIGHT, camera_->GetViewMask());
|
|
|
octree_->GetDrawables(query);
|
|
octree_->GetDrawables(query);
|
|
|
}
|
|
}
|
|
@@ -2086,7 +2086,7 @@ void View::ProcessLight(LightQueryResult& query, unsigned threadIndex)
|
|
|
|
|
|
|
|
case LIGHT_SPOT:
|
|
case LIGHT_SPOT:
|
|
|
{
|
|
{
|
|
|
- FrustumOctreeQuery octreeQuery(tempDrawables, light->GetFrustum(), DRAWABLE_GEOMETRY | DRAWABLE_PROXYGEOMETRY,
|
|
|
|
|
|
|
+ FrustumOctreeQuery octreeQuery(tempDrawables, light->GetFrustum(), DRAWABLE_GEOMETRY | DRAWABLE_RENDERER2D,
|
|
|
camera_->GetViewMask());
|
|
camera_->GetViewMask());
|
|
|
octree_->GetDrawables(octreeQuery);
|
|
octree_->GetDrawables(octreeQuery);
|
|
|
for (unsigned i = 0; i < tempDrawables.Size(); ++i)
|
|
for (unsigned i = 0; i < tempDrawables.Size(); ++i)
|
|
@@ -2100,7 +2100,7 @@ void View::ProcessLight(LightQueryResult& query, unsigned threadIndex)
|
|
|
case LIGHT_POINT:
|
|
case LIGHT_POINT:
|
|
|
{
|
|
{
|
|
|
SphereOctreeQuery octreeQuery(tempDrawables, Sphere(light->GetNode()->GetWorldPosition(), light->GetRange()),
|
|
SphereOctreeQuery octreeQuery(tempDrawables, Sphere(light->GetNode()->GetWorldPosition(), light->GetRange()),
|
|
|
- DRAWABLE_GEOMETRY | DRAWABLE_PROXYGEOMETRY, camera_->GetViewMask());
|
|
|
|
|
|
|
+ DRAWABLE_GEOMETRY | DRAWABLE_RENDERER2D, camera_->GetViewMask());
|
|
|
octree_->GetDrawables(octreeQuery);
|
|
octree_->GetDrawables(octreeQuery);
|
|
|
for (unsigned i = 0; i < tempDrawables.Size(); ++i)
|
|
for (unsigned i = 0; i < tempDrawables.Size(); ++i)
|
|
|
{
|
|
{
|
|
@@ -2142,7 +2142,7 @@ void View::ProcessLight(LightQueryResult& query, unsigned threadIndex)
|
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
// Reuse lit geometry query for all except directional lights
|
|
// Reuse lit geometry query for all except directional lights
|
|
|
- ShadowCasterOctreeQuery query(tempDrawables, shadowCameraFrustum, DRAWABLE_GEOMETRY | DRAWABLE_PROXYGEOMETRY,
|
|
|
|
|
|
|
+ ShadowCasterOctreeQuery query(tempDrawables, shadowCameraFrustum, DRAWABLE_GEOMETRY | DRAWABLE_RENDERER2D,
|
|
|
camera_->GetViewMask());
|
|
camera_->GetViewMask());
|
|
|
octree_->GetDrawables(query);
|
|
octree_->GetDrawables(query);
|
|
|
}
|
|
}
|