浏览代码

enable slow shadow.

/main
kg 6 年前
当前提交
164b4e48
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 4
      Runtime/gestures/converter.cs
  2. 2
      Runtime/ui/painting/shadow_utils.cs

4
Runtime/gestures/converter.cs


switch (datum.change) {
case PointerChange.down: {
_PointerState state = _ensureStateForPointer(datum, position);
D.assert(!state.down);
if (state.down) {
break;
}
if (state.lastPosition != position) {
// a hover event to be here.
state.lastPosition = position;

2
Runtime/ui/painting/shadow_utils.cs


namespace Unity.UIWidgets.ui {
static class ShadowUtils {
public static bool kUseFastShadow = true;
public static bool kUseFastShadow = false;
public const float kAmbientHeightFactor = 1.0f / 128.0f;
public const float kAmbientGeomFactor = 64.0f;

正在加载...
取消
保存