我们创建了 Fontainebleau 演示来说明摄影photogrammetry流程和 LayeredLit 着色器的使用。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

31 行
960 B

using UnityEngine;
namespace LightingTools.LightProbesVolumes
{
[ExecuteInEditMode]
[RequireComponent(typeof(BoxCollider))]
public class LightProbesVolumeSettings : MonoBehaviour
{
public float horizontalSpacing = 2.0f;
public float verticalSpacing = 2.0f;
public float offsetFromFloor = 0.5f;
public int numberOfLayers = 2;
public bool fillVolume = false;
public bool followFloor = true;
public bool discardInsideGeometry;
public bool drawDebug = false;
private void OnEnable()
{
var boxCollider = GetComponent<BoxCollider>();
boxCollider.isTrigger = true;
}
#if UNITY_EDITOR
public void Populate()
{
LightProbesPlacement.Populate(gameObject,horizontalSpacing,verticalSpacing,offsetFromFloor,numberOfLayers,drawDebug,fillVolume,discardInsideGeometry, followFloor);
}
#endif
}
}