Refactor SceneRendering to simplify actors impl of drawing flow at high level
This commit is contained in:
@@ -210,7 +210,7 @@ void SplineModel::OnSplineUpdated()
|
||||
BoundingSphere::Merge(_sphere, _instances[i].Sphere, _sphere);
|
||||
BoundingBox::FromSphere(_sphere, _box);
|
||||
if (_sceneRenderingKey != -1)
|
||||
GetSceneRendering()->UpdateGeometry(this, _sceneRenderingKey);
|
||||
GetSceneRendering()->UpdateActor(this, _sceneRenderingKey);
|
||||
}
|
||||
|
||||
void SplineModel::UpdateDeformationBuffer()
|
||||
@@ -431,11 +431,6 @@ void SplineModel::Draw(RenderContext& renderContext)
|
||||
}
|
||||
}
|
||||
|
||||
void SplineModel::DrawGeneric(RenderContext& renderContext)
|
||||
{
|
||||
Draw(renderContext);
|
||||
}
|
||||
|
||||
bool SplineModel::IntersectsItself(const Ray& ray, float& distance, Vector3& normal)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user