Search Issue Tracker
By Design
Votes
0
Found in
2020.3.40f1
2021.3.12f1
2022.1.20f1
2022.2.0b11
2023.1.0a14
Issue ID
UUM-16900
Regression
No
UNITY_SAMPLE_TEX2DARRAY returns incorrect results
Reproduction steps:
1. Open the attached project “Shader Sampling Test”
2. Enter Play mode
Expected result: Both of the cubes are green
Actual result: One cube is green, the other cube is red
Reproducible with: 2020.3.40f1, 2021.3.12f1, 2022.1.20f1, 2022.2.0b11, 2023.1.0a14
Reproducible on: macOS 12.4 (Intel)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
In the provided repro project, there is an error on line 32 in "test2.cs" where "_MainTexture" should instead be "_MainTex", to match the property in the shader.
With the error fixed, it looks like both cubes are indeed green and tex2D / UNITY_SAMPLE_TEX2DARRAY sample in the same way.