浏览代码

new test scene with animated skin mesh

/srp_batcher
Arnaud Carre 7 年前
当前提交
69a3f7fb
共有 7 个文件被更改,包括 1211 次插入155 次删除
  1. 1
      SampleScenes/Common/Scripts/MiniProfiler.cs
  2. 310
      SampleScenes/HDTest/NewBatcherBench1None.unity
  3. 35
      SampleScenes/Common/Scripts/SetRandomColor.cs
  4. 11
      SampleScenes/Common/Scripts/SetRandomColor.cs.meta
  5. 1001
      SampleScenes/HDTest/AnimBench.unity
  6. 8
      SampleScenes/HDTest/AnimBench.unity.meta

1
SampleScenes/Common/Scripts/MiniProfiler.cs


new RecorderEntry() { name="Shadows.Draw" },
new RecorderEntry() { name="RenderLoopNewBatcher.Draw" },
new RecorderEntry() { name="ShadowLoopNewBatcher.Draw" },
new RecorderEntry() { name="RenderLoopDevice.Idle" },
new RecorderEntry() { name="StaticBatchDraw.Count" },
};

310
SampleScenes/HDTest/NewBatcherBench1None.unity
文件差异内容过多而无法显示
查看文件

35
SampleScenes/Common/Scripts/SetRandomColor.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SetRandomColor : MonoBehaviour {
public bool createDifferentMaterial = true;
// Use this for initialization
void Start ()
{
Animator[] objA = FindObjectsOfType<Animator>();
foreach (Animator o in objA)
{
float t = Random.value * 4.0f;
o.Update(t);
}
UnityEngine.Object[] obj = Object.FindObjectsOfType(typeof (UnityEngine.SkinnedMeshRenderer));
foreach (Object o in obj)
{
// go.material.color = ;
UnityEngine.SkinnedMeshRenderer r = (UnityEngine.SkinnedMeshRenderer)o;
r.material.SetColor("_BaseColor", Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f));
}
}
// Update is called once per frame
void Update () {
}
}

11
SampleScenes/Common/Scripts/SetRandomColor.cs.meta


fileFormatVersion: 2
guid: 1413e5bd122c6af429aff6880cfd66eb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

1001
SampleScenes/HDTest/AnimBench.unity
文件差异内容过多而无法显示
查看文件

8
SampleScenes/HDTest/AnimBench.unity.meta


fileFormatVersion: 2
guid: 570583ef34185c74da1f87c3c3b7e66b
timeCreated: 1457255157
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存