BitmapMaterial 생성자
RedGPUContext 인스턴스
Optional
diffuseTexture: BitmapTexture적용할 비트맵 텍스처
Optional
name: string머티리얼 이름(옵션)
파이프라인 갱신 시 호출되는 콜백 리스트
머티리얼에 적용할 비트맵 텍스처
비트맵 텍스처 샘플러
파이프라인 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 렌더 파이프라인 정보 및 유니폼 버퍼 초기화
텍스처 객체 변경 및 DirtyPipeline 리스너 관리
이전 텍스처(BitmapTexture|CubeTexture|ANoiseTexture)
새 텍스처(BitmapTexture|CubeTexture|ANoiseTexture)
비트맵 텍스처 기반의 머티리얼 클래스입니다.
BitmapTexture와 Sampler를 통해 다양한 텍스처 기반 렌더링 효과를 구현할 수 있습니다.
Example