I want to make a fadeIn function in my game.
But it seems to have some problem.
So I make a new project to test this.
And then , I find something make me confused.
This is my test project:
It’s so simple.
I make the box entity with a new material which set opacity.
Then , I refer the t.js in the root.
In the t.js :
First , I set the opacity of box to 0
Then , I use FadeIn function
The FadeIn function is such as this
You can see that there is two version.
It’s important
The version 1 is normal and has no problem
However , the version 2 has some problem
In the chrome debug
You can see I debug in the 1000
But I find nothing in the window unless the opacity is higher than 0.4.
Yes , you can’t see wrong.
Only the opacity is higher than 0.4 I can see the box in the window when I debug in chrome.
So I am confused
Who can help me?