Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved material.SetFloat("foo", foo) but for float3?

Discussion in 'Shaders' started by CinnamonCereals, Jan 23, 2022.

  1. CinnamonCereals

    CinnamonCereals

    Joined:
    Jan 19, 2022
    Posts:
    23
    Is it possible to pass an array of 3? for example a vector3 in a mono behaviour to a float3 in a shader?
     
  2. CinnamonCereals

    CinnamonCereals

    Joined:
    Jan 19, 2022
    Posts:
    23
    solved, you can send a vector instead
     
    Last edited: Jan 24, 2022