Closed forcepusher closed 2 years ago
Describe the bug When using Stylized Surface With Outline shader, the Outline Depth Offset setting is inverted on Android, while using Built-in RP.
To Reproduce Steps to reproduce the behavior:
Unity details:
Build platform:
Additional context Adding this script to Mug14 solves the problem, but I'd like a proper fix.
using UnityEngine; public class OutlineDepthOffsetInverter : MonoBehaviour { private void Awake() { #if UNITY_ANDROID && !UNITY_EDITOR Renderer renderer = GetComponent<Renderer>(); var propertyBlock = new MaterialPropertyBlock(); renderer.GetPropertyBlock(propertyBlock); propertyBlock.SetFloat("_OutlineDepthOffset", -propertyBlock.GetFloat("_OutlineDepthOffset")); renderer.SetPropertyBlock(propertyBlock); #endif } }
Thanks for reporting this, we will look into it.
Hi @forcepusher, this issue should be fixed in Flat Kit 2.6.7 or later. Thanks again for reporting!
Describe the bug When using Stylized Surface With Outline shader, the Outline Depth Offset setting is inverted on Android, while using Built-in RP.
To Reproduce Steps to reproduce the behavior:
Unity details:
Build platform:
Additional context Adding this script to Mug14 solves the problem, but I'd like a proper fix.