ColorMaterial 생성자
RedGPUContext 인스턴스
HEX 문자열 또는 컬러 코드(기본값: '#fff')
머티리얼의 단색 컬러(ColorRGB)
파이프라인 dirty 상태 플래그
프래그먼트 GPU 렌더 정보 객체
머티리얼의 불투명도(0~1)
머티리얼의 틴트 컬러(RGBA)
머티리얼 투명도 여부
2패스 렌더링 사용 여부
틴트 컬러 사용 여부
머티리얼의 알파 블렌드 상태 객체 반환
머티리얼의 컬러 블렌드 상태 객체 반환
Retrieves the GPU device associated with the current instance.
The GPU device.
Retrieves the UUID of the object.
The UUID of the object.
머티리얼의 writeMask 상태 반환
머티리얼의 writeMask 상태 설정
GPUFlagsConstant 값
Adds a listener function to the dirty pipeline listeners array. This function will be called when the pipeline becomes dirty.
The listener function to be added.
Fires the dirty listeners list.
Optional
resetList: boolean = falseIndicates whether to reset the dirty listeners list after firing.
Removes a dirty pipeline listener from the list of listeners.
The listener function to be removed.
머티리얼의 유니폼/컬러/틴트 등 기본 속성값을 유니폼 버퍼에 반영
프래그먼트 셰이더 바인드 그룹/유니폼/텍스처/샘플러 등 상태 갱신
GPU 프래그먼트 렌더 상태 객체 반환
셰이더 엔트리포인트(기본값: 'main')
GPU 렌더 파이프라인 정보 및 유니폼 버퍼 초기화
단색(솔리드 컬러) 렌더링을 위한 머티리얼 클래스입니다. ColorRGB 기반의 색상 지정이 가능하며, GPU 파이프라인에서 단일 색상으로 오브젝트를 렌더링할 때 사용합니다.
Example