您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
679 B
25 行
679 B
namespace UnityEngine.Rendering.Universal
|
|
{
|
|
public static class ShaderInput
|
|
{
|
|
[GenerateHLSL(PackingRules.Exact, false)]
|
|
public struct LightData
|
|
{
|
|
public Vector4 position;
|
|
public Vector4 color;
|
|
public Vector4 attenuation;
|
|
public Vector4 spotDirection;
|
|
public Vector4 occlusionProbeChannels;
|
|
}
|
|
|
|
[GenerateHLSL(PackingRules.Exact, false)]
|
|
public struct ShadowData
|
|
{
|
|
public Matrix4x4 worldToShadowMatrix;
|
|
|
|
// x: shadow strength
|
|
// y: 1 if soft shadows, 0 otherwise
|
|
public Vector4 shadowParams;
|
|
}
|
|
}
|
|
}
|