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
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
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.