{!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} Class PolySpatialShaderGlobals | Unity PolySpatial | 0.0.4
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PolySpatialShaderGlobals

    Inheritance
    object
    PolySpatialShaderGlobals
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.PolySpatial
    Assembly: solution.dll
    Syntax
    public static class PolySpatialShaderGlobals

    Fields

    Name Description
    CosTime
    CosTimeID
    DeltaTime
    DeltaTimeID
    OrthoParams
    OrthoParamsID
    ProjectionMatrix
    ProjectionMatrixID
    ProjectionParams
    ProjectionParamsID
    ScreenParams
    ScreenParamsID
    SinTime
    SinTimeID
    Time
    TimeID
    ViewMatrix
    ViewMatrixID
    WorldSpaceCameraDir
    WorldSpaceCameraDirID
    WorldSpaceCameraPos
    WorldSpaceCameraPosID
    WorldSpaceLightPos0
    WorldSpaceLightPos0ID

    Methods

    Name Description
    SetColor(string, Color)

    Sets the value of a color shader global and adds it to the list of globals to transfer via PolySpatial.

    SetFloat(string, float)

    Sets the value of a float shader global and adds it to the list of globals to transfer via PolySpatial.

    SetInteger(string, int)

    Sets the value of an integer shader global and adds it to the list of globals to transfer via PolySpatial.

    SetMatrix(string, Matrix4x4)

    Sets the value of a matrix shader global and adds it to the list of globals to transfer via PolySpatial.

    SetTexture(string, Texture)

    Sets the value of a texture shader global and adds it to the list of globals to transfer via PolySpatial.

    SetVector(string, Vector4)

    Sets the value of a vector shader global and adds it to the list of globals to transfer via PolySpatial.

    TryAdd(string, PropertyType)

    Attempts to add a property to the list of shader globals to transfer via PolySpatial.

    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)