Graphics: Make Background/RenderTechnique independent from Scene
Former-commit-id: d588a3bb74b08d79990a278ad2e399e9797755b4
This commit is contained in:
@@ -219,12 +219,10 @@ NzSkyboxBackground::~NzSkyboxBackground()
|
||||
s_vertexBuffer = nullptr;
|
||||
}
|
||||
|
||||
void NzSkyboxBackground::Draw(const NzScene* scene) const
|
||||
void NzSkyboxBackground::Draw(const NzAbstractViewer* viewer) const
|
||||
{
|
||||
static NzRenderStates states(BuildRenderStates());
|
||||
|
||||
NzAbstractViewer* viewer = scene->GetViewer();
|
||||
|
||||
NzMatrix4f skyboxMatrix(viewer->GetViewMatrix());
|
||||
skyboxMatrix.SetTranslation(NzVector3f::Zero());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user