Improve demos
This commit is contained in:
parent
5a57976b4b
commit
06f45db91c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue