InstancingMesh 인스턴스를 생성합니다.
RedGPU 컨텍스트
인스턴스 개수
Optional
geometry: Geometry | Primitive.Core.Primitivegeometry 또는 primitive 객체(선택)
Optional
material: any머티리얼(선택)
그림자 캐스팅 여부
메시의 디스플레이스먼트 텍스처
이 객체의 모델 행렬입니다. 위치, 회전, 스케일 변환에 사용됩니다.
Retrieves the GPU device associated with the current instance.
The GPU device.
인스턴스별 transform/계층 구조를 관리하는 객체 배열을 반환합니다.
인스턴스 개수를 반환합니다.
인스턴스 개수를 설정합니다. (버퍼 및 인스턴스 객체 자동 갱신)
인스턴스 개수
자식 객체의 개수를 반환합니다.
자식 수
설정된 부모 객체값을 반환합니다.
Retrieves the UUID of the object.
The UUID of the object.
Fires the dirty listeners list.
Optional
resetList: boolean = falseIndicates whether to reset the dirty listeners list after firing.
자식 Mesh를 특정 인덱스에 추가합니다.
추가할 자식 객체
삽입 위치
현재 컨테이너
Optional
targetY: numberOptional
targetZ: number인스턴싱 메시의 렌더링을 수행합니다.
렌더 상태 데이터
그림자 렌더링 여부
Optional
y: numberOptional
z: numberOptional
rotationY: numberOptional
rotationZ: numberOptional
y: numberOptional
z: number두 인덱스의 자식 객체 위치를 서로 바꿉니다.
첫 번째 인덱스
두 번째 인덱스
GPU 인스턴싱 기반의 메시 클래스입니다.
하나의 geometry와 material을 여러 인스턴스(Instance)로 효율적으로 렌더링할 수 있습니다.
각 인스턴스는 transform(위치, 회전, 스케일)만 다르고 geometry/vertex 데이터와 머티리얼은 공유합니다.