BatchRendererGroup(BRG)은 화면에 렌더링하기 위해 드로우 커맨드를 생성하는데, 이는 Unity가 최적화된 인스턴스화 드로우 콜을 효율적으로 생성하는 데 필요한 모든 것이 포함된 BRG 전용 개념입니다.
드로우 커맨드에서 인스턴스를 렌더링할 시기를 결정하기 위해 BRG는 필터 설정을 사용합니다.필터 설정은 인스턴스 자체를 렌더링할 때뿐만 아니라, 그림자 및 모션 벡터와 같이 각 인스턴스의 특정 면을 렌더링할 때도 제어합니다.
동일한 필터 설정이 여러 드로우 커맨드에 적용될 수 있기 때문에 BRG는 드로우 범위를 사용하여 다양한 드로우 커맨드에 필터 설정을 적용합니다.드로우 범위에는 연속된 수의 드로우 커맨드와 그에 적용되는 필터 설정의 인스턴스가 결합되어 있습니다.드로우 범위는 필터 설정에서 Unity가 드로우 커맨드를 렌더링하지 않기로 결정한 경우 특히 유용합니다. 이는 범위 내의 모든 드로우 커맨드에 대한 렌더링을 효율적으로 건너뛸 수 있기 때문입니다.
어떤 인스턴스가 어떤 드로우 콜에 있는지에 대한 제한은 없습니다.동일한 인스턴스 인덱스와 batchID를 가진 오브젝트인 동일한 인스턴스를 다른 메시와 머티리얼을 사용하여 여러 번 렌더링할 수 있습니다.이 기능을 유용하게 사용할 수 있는 한 가지 예는 서로 다른 머티리얼로 서로 다른 하위 메시를 드로잉하되 동일한 인스턴스 인덱스를 사용하여 드로우 간에 트랜스폼 매트릭스와 같은 프로퍼티를 공유하는 것입니다.
BRG를 사용하여 렌더러를 생성하는 방법에 대한 자세한 내용은 BatchRendererGroup으로 렌더러 생성을 참조하십시오.
대부분의 경우 Unity는 스크립터블 렌더 파이프라인에서 호환되는 각 DrawRenderers 호출에 대해 드로우 커맨드를 단일 플랫폼 수준의 인스턴스화 드로우 콜로 렌더링합니다.하지만 드로우 콜에 대한 그래픽스 API의 제한 크기가 드로우 커맨드의 visibleCount
보다 낮을 경우에는 불가능합니다.이러한 경우 Unity는 드로우 커맨드를 여러 개의 인스턴스화 드로우 콜로 분할합니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.