ULRE/inc/hgl/graph/mtl/BlinnPhong.h

30 lines
518 B
C
Raw Normal View History

2024-03-04 13:13:33 +08:00
#pragma once
#include<hgl/graph/mtl/StdMaterial.h>
#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
{
DescriptorSetType::Scene,
2024-03-06 13:54:05 +08:00
"sun",
"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