mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-27 16:17:12 +03:00
Transformation system path
This commit is contained in:
@@ -312,6 +312,7 @@ namespace Nuake
|
||||
}
|
||||
Renderer::Flush(gBufferShader, false);
|
||||
|
||||
RenderCommand::Disable(RendererEnum::FACE_CULL);
|
||||
// Sprites
|
||||
auto spriteView = scene.m_Registry.view<TransformComponent, SpriteComponent, VisibilityComponent>();
|
||||
for (auto& e : spriteView)
|
||||
|
||||
@@ -488,7 +488,6 @@ namespace Nuake
|
||||
skeletonRoot.EntityHandle = skeletonRootEntity.GetHandle();
|
||||
entity.AddChild(skeletonRootEntity);
|
||||
|
||||
|
||||
Vector3 bonePosition;
|
||||
Quat boneRotation;
|
||||
Vector3 boneScale;
|
||||
|
||||
@@ -78,8 +78,9 @@ namespace Nuake
|
||||
Quat globalOrientation = transform.GetLocalRotation();
|
||||
Vector3 globalScale = transform.GetLocalScale();
|
||||
|
||||
#ifndef FRAME_PERFECT_TRANSFORM
|
||||
ParentComponent parentComponent = currentParent.GetComponent<ParentComponent>();
|
||||
#define FRAME_PERFECT_TRANSFORM
|
||||
#ifndef FRAME_PERFECT_TRANSFORM
|
||||
if (parentComponent.HasParent)
|
||||
{
|
||||
TransformComponent& transformComponent = parentComponent.Parent.GetComponent<TransformComponent>();
|
||||
|
||||
Reference in New Issue
Block a user