docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Transform2dSample

    The following is based on the Pixar specification found here: https://graphics.pixar.com/usd/docs/UsdPreviewSurface-Proposal.html Transform 2d represents a node that can be used to transform 2d data (for instance, texture coordinates). The node applies the following transformation : in * scale * rotate + translation

    Inheritance
    object
    ShaderSample
    Transform2dSample
    Inherited Members
    ShaderSample.id
    ShaderSample.GetInputParameters()
    ShaderSample.GetInputTextures()
    Namespace: USD.NET.Unity
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class Transform2dSample : ShaderSample

    Constructors

    Name Description
    Transform2dSample()
    Transform2dSample(string)

    Fields

    Name Description
    in

    This input provides the data. It is usually connected to a UsdPrimvarReader_float2 that will provide the data.

    outputs

    Outputs transformed float2 values.

    rotation

    Counter-clockwise rotation in degrees around the origin to be applied to all components of the data.

    scale

    Scale around the origin to be applied to all components of the data.

    translation

    Translation to be applied to all components of the data.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)