{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method RenderFromCamera | High Definition RP | 10.5.0
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Method RenderFromCamera

    RenderFromCamera(in CustomPassContext, Camera, LayerMask, RenderQueueType, Material, int, RenderStateBlock)

    Render a list of objects from another camera point of view.

    선언
    public static void RenderFromCamera(in CustomPassContext ctx, Camera view, LayerMask layerMask, CustomPass.RenderQueueType renderQueueFilter = RenderQueueType.All, Material overrideMaterial = null, int overrideMaterialIndex = 0, RenderStateBlock overrideRenderState = default)
    파라미터
    타입 이름 설명
    CustomPassContext ctx

    Custom Pass Context.

    Camera view

    The camera from where you want the objects to be rendered.

    LayerMask layerMask

    LayerMask to filter the objects to render.

    CustomPass.RenderQueueType renderQueueFilter

    Render Queue to filter the type of objects you want to render.

    Material overrideMaterial

    Optional material that will be used to render the objects.

    int overrideMaterialIndex

    Pass index to use for the override material.

    RenderStateBlock overrideRenderState

    The render states to override when rendering the objects.

    RenderFromCamera(in CustomPassContext, Camera, RTHandle, RTHandle, ClearFlag, LayerMask, RenderQueueType, Material, int, RenderStateBlock)

    Render a list of objects from another camera point of view.

    선언
    public static void RenderFromCamera(in CustomPassContext ctx, Camera view, RTHandle targetColor, RTHandle targetDepth, ClearFlag clearFlag, LayerMask layerMask, CustomPass.RenderQueueType renderQueueFilter = RenderQueueType.All, Material overrideMaterial = null, int overrideMaterialIndex = 0, RenderStateBlock overrideRenderState = default)
    파라미터
    타입 이름 설명
    CustomPassContext ctx

    Custom Pass Context.

    Camera view

    The camera from where you want the objects to be rendered.

    RTHandle targetColor

    The render target that will be bound to the color buffer before rendering

    RTHandle targetDepth

    The render target that will be bound to the depth buffer before rendering

    ClearFlag clearFlag

    The type of clear to do before binding the render targets.

    LayerMask layerMask

    LayerMask to filter the objects to render.

    CustomPass.RenderQueueType renderQueueFilter

    Render Queue to filter the type of objects you want to render.

    Material overrideMaterial

    Optional material that will be used to render the objects.

    int overrideMaterialIndex

    Pass index to use for the override material.

    RenderStateBlock overrideRenderState

    The render states to override when rendering the objects.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)