浏览代码

material shadow drawshadowflag = false by default

/main
xingwei.zhu 6 年前
当前提交
21c56018
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
      Runtime/ui/painting/shadow_utils.cs

6
Runtime/ui/painting/shadow_utils.cs


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

public static void drawShadow(Canvas canvas, Path path, Vector3 zPlaneParams, Vector3 devLightPos,
float lightRadius, Color ambientColor, Color spotColor, int flags) {
if (!_drawShadowFlag) {
return;
}
Matrix3 viewMatrix = canvas.getTotalMatrix();
//ambient light

正在加载...
取消
保存