Search Issue Tracker
Fixed in 2017.1.0f3
Votes
0
Found in
5.6.0f3
Issue ID
898067
Regression
Yes
Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' faulty replacement breaking shader
Steps reproduce:
1. Open attached project
2. Open ShadowMeta.cginc
3. Replace UnityObjectToClipPos(pos4) to mul(UNITY_MATRIX_MVP, pos4)
4. Save script
5. Notice that mul(UNITY_MATRIX_MVP, pos4) is upgraded to UnityObjectToClipPos(pos4)
Expected result: mul(UNITY_MATRIX_MVP, pos4) should not be replaced with UnityObjectToClipPos(pos4)
Reproduced in: 2017.1.0a6, 5.6.0f3, 5.6.0f2
Not reproduced in: 5.6.0f1, 5.6.0b11, 5.6.0b1 ,5.6.0a1, 5.5.3f1
Regression since: 5.6.0f2
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
- Profiling information icon does not update for Light Mode
- [Linux] Type to select functionality is missing for drop down menus
- TextMeshPro calculates Width Compression incorrectly when using certain values in the WD% field
- VFX Graph link contrasts fail WCAG guidelines
- D3D12 PSO disk cache feature crashes if paths contain non-ASCII characters
nefelia
Jun 10, 2017 20:16
are you kidding me!
watermy
Jun 08, 2017 06:45
5.6.1p2 is still broken.
Anyone has a workaround ?
pigshape
Jun 02, 2017 05:21
what means "Fix in review"?.Already fixed? it seems to not be fixed in 5.6.1f1.
jimburn
May 29, 2017 01:33
Is working:
float4x4 vp = mul(UNITY_MATRIX_MVP, unity_WorldToObject);
Forced by Unity replaced by
float4x4 vp = UnityObjectToClipPos(unity_WorldToObject);
This generates an error: Shader error in 'custom/Billboard': 'UnityObjectToClipPos': cannot implicitly convert from 'float4x4' to 'float4' at line 132 (on d3d11)
Shaders now are broken, and no way to fix them. Please take in account 4x4 case.
MediaGiant
May 06, 2017 19:42
In version 2017.1.0b1
Breaks a shader called GizmoShader
http://answers.unity3d.com/storage/attachments/54575-gizmoshader.zip
Lines fail ZTest and are rendered over geometry
I hope this is fixed before release
Heartbroken
Apr 27, 2017 15:19
The same for mul(UNITY_MATRIX_MVP, mat4x4)
Hope this is fixed too.