I already tried it and it doesn’t work.
This PG should display red, green and a blue plane.
- Red is set at scene init - works.
- After 2s green color is set, nm is rebuilt, texture counter is reset but doesn’t change the texture, so no color change on the plane.
- After 4s blue is set, same actions taken, color changes to green.
RED - ALL OK
setting gradient - red
VM1052:47 rebuilding nm
proceduralTexture.ts:417 shouldRender (_currentRefreshId === -1) true -1 -1
VM1052:31 beforegen tex
VM1052:34 gen tex Uint8Array(4194304) [255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, …]
GREEN - get content still returns 255, 0, 0, 255
setting gradient - green
VM1052:47 rebuilding nm
VM1052:39 nm onbuild
proceduralTexture.ts:417 shouldRender (_currentRefreshId === -1) true -1 0
VM1052:31 beforegen tex
VM1052:34 gen tex Uint8Array(4194304) [255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 255, …]
BLUE - get content returns[0, 255, 0, 255 - so the previous one
VM1052:47 rebuilding nm
VM1052:39 nm onbuild
proceduralTexture.ts:417 shouldRender (_currentRefreshId === -1) true -1 1
VM1052:31 beforegen tex
VM1052:34 gen tex Uint8Array(4194304) [0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, …]
proceduralTexture.ts:433
Now the funny thing about this is that it sometimes generates all three colors. I believe it should behave always the same. Any ideas?