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

Shaders

-

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

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.