Diffuse tint set in script problem

Hi everyone,

I am trying to set diffuse tint in script. This is what I expect to happen:

and this is what happened:

Simple project demonstrating problem:
https://playcanvas.com/project/829626/overview/tint

Is there any way to fix this?

pc.Color uses 0-1 values, not 0-255: Color | PlayCanvas API Reference

What’s happening here is over brightening :slight_smile:

2 Likes

Ah, my bad. :sweat_smile: Thank you!