Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Help Wanted Multiple Vector3 to same shader

Discussion in 'Shader Graph' started by Pinguio, Jul 13, 2021.

  1. Pinguio

    Pinguio

    Joined:
    Sep 8, 2019
    Posts:
    1
    Hello, I have a C# script attached to a sphere that set the sphere position (Vector3) in a shader property that calculate the distance between the plan where the shader is used and the sphere + a radius and change the plan texture in that area.
    That works fine when I have only one sphere, but how can I do if i want to apply the effect to multiple spheres at the same time? I'm using URP.
    Basically I want to apply the texture only on a certain area of the mesh.
    I've made a scheme, maybe it helps to understand:



    I want to achieve this result:

    But in multiple parts of the environment at the same time.
     
    Last edited: Jul 14, 2021
unityunity