test sunlight UBO ok!

This commit is contained in:
2024-03-10 00:35:35 +08:00
parent 5188d4149c
commit f3a59c1bb3
5 changed files with 42 additions and 31 deletions

View File

@@ -8,8 +8,8 @@ namespace blinnphong
{
struct SunLight
{
Vector3f direction;
Vector3f color;
Vector4f direction;
Vector4f color;
};//struct SunLight
constexpr const ShaderBufferSource SBS_SunLight=
@@ -18,8 +18,8 @@ namespace blinnphong
"sun",
R"(
vec3 direction;
vec3 color;
vec4 direction;
vec4 color;
)"
};
}//namespace blinnphong