Search Issue Tracker
Fixed in 5.3.5
Votes
0
Found in
5.3.2p2
Issue ID
786889
Regression
No
[WSA] Changing terrain texture at runtime getting visual artifacts
When changing terrain texture on runtime, texture data seems to get corrupted, rendered with wrong colors or sometimes not appearing at all. Some analysis on this issue has been done and it seems that after the texture switch constant buffer is corrupted somehow - it contains very big values (something like 1e8 as before switch values were under 10). Those values are finally used in shader when doing texture sampling and pixels are invalid.
Reproducible on 5.3.4f1, 5.3.4p3, 5.4.0b14 versions.
Repro GIF:
https://gyazo.com/e85e2f388421b903e1fd64e4ccc0da2e
Repro steps:
1. Open project "TerrainTextureTest.zip
2. Open the test scene and play it. Press buttons visible on screen to swap existing textures or to generate textures from scratch.
3. Build to WSA 8.1 or WSA Universal 10 platform with .NET backend (with IL2CPP backend there is no visual issue).
4. Build and run generated project on PC or tablet.
On WP10 phones issue ir not reproducible. Also, issue is not reproducible when using IL2CPP backend for WSA Universal 10 platform.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Economy package throws a CS0619 error in the Console when installed together with Deployment package
- “Screen position out of view frustum” errors are thrown when zooming out in the Scene view with Rect Tool selected
- Only one [UnityOneTimeSetUp] method runs when there are 2 of them in different classes
- Crash with multiple stack traces when Sprites with a high resolution get Sliced to a Grid with a small cell size in the Sprite Editor
- The UI Builder's Data Source Object picker cannot be navigated after triggering a circular dependency dialog box
Add comment