Improve demos

This commit is contained in:
SirLynix 2022-12-02 23:00:53 +01:00 committed by Jérôme Leclercq
parent 5a57976b4b
commit 06f45db91c
2 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,7 @@ int main()
{
renderStates.depthClamp = true;
renderStates.depthWrite = false;
renderStates.faceCulling = Nz::FaceCulling::None;
renderStates.blending = true;
renderStates.blend.modeColor = Nz::BlendEquation::Add;
renderStates.blend.modeAlpha = Nz::BlendEquation::Add;

View File

@ -74,6 +74,7 @@ int main()
playerRotNode.SetParent(playerNode);
auto& cameraNode = registry.emplace<Nz::NodeComponent>(playerCamera);
cameraNode.SetPosition(Nz::Vector3f::Up() * 2.f + Nz::Vector3f::Backward());
//cameraNode.SetParent(playerRotNode);
auto& cameraComponent = registry.emplace<Nz::CameraComponent>(playerCamera, window.GetRenderTarget());