프로그래밍 공부

2023/11/29 1

카테고리 설명
  • 일반적인 인스턴싱과 다르게 AnimationInstancing은 조금 다른 데이터를 더 주어야 한다. 위치 Matrix의 값과 Animation의 객체값을 따로 넣어야 한다. 먼저 HLSL을 새로 만들어준다. ModelAnimationInstancing.hlsl을 만든다. struct VertexInstancing { float4 pos : POSITION; float2 uv : UV; float3 normal : NORMAL; float3 tangent : TANGENT; float4 indices : BLENDINDICES; // 특정 본들, 본에 꼽혀있을 때, 어떤 본에 가중치를 줄 것인지 웨이트가 들어감. float4 weights : BLENDWEIGHTS; matrix transform : I..