2024-03-04 13:13:33 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include<hgl/graph/mtl/StdMaterial.h>
|
2025-03-04 22:41:07 +08:00
|
|
|
#include<hgl/graph/mtl/ShaderBufferSource.h>
|
2024-03-04 13:13:33 +08:00
|
|
|
#include<hgl/math/Vector.h>
|
2024-03-06 13:54:05 +08:00
|
|
|
STD_MTL_NAMESPACE_BEGIN
|
|
|
|
namespace blinnphong
|
2024-03-04 13:13:33 +08:00
|
|
|
{
|
2024-03-06 13:54:05 +08:00
|
|
|
struct SunLight
|
|
|
|
{
|
2024-03-10 00:35:35 +08:00
|
|
|
Vector4f direction;
|
|
|
|
Vector4f color;
|
2024-03-06 13:54:05 +08:00
|
|
|
};//struct SunLight
|
|
|
|
|
|
|
|
constexpr const ShaderBufferSource SBS_SunLight=
|
2024-03-04 13:13:33 +08:00
|
|
|
{
|
2025-06-09 22:52:10 +08:00
|
|
|
DescriptorSetType::Scene,
|
|
|
|
|
2024-03-06 13:54:05 +08:00
|
|
|
"sun",
|
|
|
|
|
2025-06-09 22:52:10 +08:00
|
|
|
"SunLight",
|
|
|
|
|
2024-03-06 13:54:05 +08:00
|
|
|
R"(
|
2024-03-10 00:35:35 +08:00
|
|
|
vec4 direction;
|
|
|
|
vec4 color;
|
2024-03-06 13:54:05 +08:00
|
|
|
)"
|
|
|
|
};
|
|
|
|
}//namespace blinnphong
|
|
|
|
STD_MTL_NAMESPACE_END
|