Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
How to lerp colors that are in separate meshes

I have 2 separate meshes, one with shallow, and one with deep water. I need to lerp the colors to make the transition nicer. I can't merge the meshes together or else I will get the mesh has too many vertices error. Any clue on how to do this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If you want to swap to colours here's a basic script to fade one object's color to anothers over 5 seconds.

[SerializeField]
Renderer object1 = null;
[SerializeField]
Renderer object2 = null;

Color Color1;
Color Color2;

// Start is called before the first frame update
void Start()
{
    Color1 = object1.material.color;
    Color2 = object2.material.color;
}

// Update is called once per frame
void Update()
{
    float lerp = Time.time / 5 * Time.deltaTime;
    object1.material.color = Color.Lerp(object1.material.color, Color2, lerp);
    object2.material.color = Color.Lerp(object2.material.color, Color1, lerp);
}

}

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!