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)

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.