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
    DeltaTime
    GlossyEnvironmentColor
    LightAttenPrefix
    LightColorPrefix
    LightCount
    LightPositionPrefix
    OrthoParams
    ProjectionMatrix
    ProjectionParams
    ScreenParams
    SinTime
    SpotDirectionPrefix
    Time
    ViewMatrix
    VolumeToWorld
    WorldSpaceCameraDir
    WorldSpaceCameraPos

    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)