컬링은 드로우하지 않을 대상을 정하는 프로세스입니다. 컬링은 최종 이미지에 보이지 않을 요소를 드로우하는 데 GPU를 낭비하지 않게 하여 렌더링 효율성을 개선합니다.
기본적으로 GPU는 백페이스 컬링을 수행합니다. 즉, 보는 사람을 등지고 있는 폴리곤은 드로우하지 않습니다. 보통 렌더링 워크로드는 줄어들수록 좋기 때문에 이 설정은 필요한 경우에만 변경하는 것이 좋습니다.
Shader "Examples/CommandExample"
{
SubShader
{
// The rest of the code that defines the SubShader goes here.
Pass
{
// Disable culling for this Pass.
// You would typically do this for special effects, such as transparent objects or double-sided walls.
Cull Off
// The rest of the code that defines the Pass goes here.
}
}
}