docs.unity3d.com
    Show / Hide Table of Contents

    Sample CameraBuffer

    Menu Path : Operator > Sampling > Sample CameraBuffer

    The Sample Texture2D Operator samples a CameraBuffer for specific Pixel Dimensions and UV.

    This translates to a Sample call on the texture in High-Level Shading Language (HLSL).

    Operator properties

    Input Type Description
    CameraBuffer CameraBuffer The camera buffer this Operator samples from.
    Pixel Dimensions Vector2 The camera pixel dimensions
    UV Vector2 The UV to sample the CameraBuffer at.
    Output Type Description
    s Vector4 The sampled value from the texture

    Limitations

    This Operator only runs on the GPU, therefore it does not work when plugged into Spawner Context ports.

    In This Article
    • Operator properties
    • Limitations
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023