RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Class DepthStencilState

    3D Mesh 등 Object3D의 GPU 렌더 파이프라인에서 깊이(Depth) 및 스텐실(Stencil) 테스트 상태를 관리하는 객체입니다.

    각종 깊이/스텐실 관련 설정을 통해 Z-버퍼 기반의 깊이 테스트, 스텐실 마스킹, 폴리곤 오프셋 등 다양한 렌더링 효과를 제어할 수 있습니다.

    Index

    Buffer

    • get state(): {
          depthBias: number;
          depthBiasClamp: number;
          depthBiasSlopeScale: number;
          depthCompare: GPUCompareFunction;
          depthWriteEnabled: boolean;
          format: GPUTextureFormat;
          stencilBack: GPUStencilFaceState;
          stencilFront: GPUStencilFaceState;
          stencilReadMask: number;
          stencilWriteMask: number;
      }

      현재 설정된 DepthStencil 상태 객체 반환

      Returns {
          depthBias: number;
          depthBiasClamp: number;
          depthBiasSlopeScale: number;
          depthCompare: GPUCompareFunction;
          depthWriteEnabled: boolean;
          format: GPUTextureFormat;
          stencilBack: GPUStencilFaceState;
          stencilFront: GPUStencilFaceState;
          stencilReadMask: number;
          stencilWriteMask: number;
      }