您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
49 行
1.2 KiB
49 行
1.2 KiB
using UnityEngine;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// structure definition
|
|
//-----------------------------------------------------------------------------
|
|
namespace UnityEngine.ScriptableRenderLoop
|
|
{
|
|
// These structures share between C# and hlsl need to be align on float4, so we pad them.
|
|
[GenerateHLSL]
|
|
public struct PunctualLightData
|
|
{
|
|
public Vector3 positionWS;
|
|
public float invSqrAttenuationRadius;
|
|
|
|
public Vector3 color;
|
|
public float useDistanceAttenuation;
|
|
|
|
public Vector3 forward;
|
|
public float diffuseScale;
|
|
|
|
public Vector3 up;
|
|
public float specularScale;
|
|
|
|
public Vector3 right;
|
|
public float shadowDimmer;
|
|
|
|
public float angleScale;
|
|
public float angleOffset;
|
|
public Vector2 unused2;
|
|
};
|
|
|
|
[GenerateHLSL]
|
|
public struct AreaLightData
|
|
{
|
|
public Vector3 positionWS;
|
|
};
|
|
|
|
[GenerateHLSL]
|
|
public struct EnvLightData
|
|
{
|
|
public Vector3 positionWS;
|
|
};
|
|
|
|
[GenerateHLSL]
|
|
public struct PlanarLightData
|
|
{
|
|
public Vector3 positionWS;
|
|
};
|
|
} // namespace UnityEngine.ScriptableRenderLoop
|