Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.2.0f3
Issue ID
961059
Regression
No
Material preview is missing when using Shader that uses TRANSFORM_TEX macro on two UVs
How to reproduce:
1. Open the user attached project and "main" scene
2. Enter playmode and observe that the particle effect using ProblemShader.mat is functional
3. Exit playmode and click on ProblemShader.mat in Project window
4. Observe the material preview window in Inspector
Expected result: Selected material is shown and previewed as expected in Material preview window
Actual result: Material preview window is empty, selected Material is not shown
Reproducible with - 2018.1.0a2, 2017.3.0b6, 2017.2.0p1, 2017.1.2p2, 2017.1.0a1
Note: commenting out line 57 (second TRANSFORM_TEX macro) - "o.uv_uv2.zw = TRANSFORM_TEX(v.uv_uv2.zw, _MainTex2);" and uncommenting line 58 - "o.uv_uv2.zw = v.uv_uv2.xy * _Tex2TileOffset.xy + _Tex2TileOffset.zw;" from ProblemMaterial.shader resolves the issue
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment