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

@@ -49,15 +49,15 @@ public:
virtual ~Material();
const UTF8String & GetName ()const{return name;}
const AnsiString & GetName ()const{return name;}
const VertexInput * GetVertexInput ()const{return vertex_input;}
const ShaderStageCreateInfoList & GetStageList ()const{return shader_stage_list;}
const MaterialDescriptorManager * GetDescriptorSets ()const{return desc_manager;}
// const MaterialDescriptorManager * GetDescriptorManager ()const{return desc_manager;}
const VkPipelineLayout GetPipelineLayout ()const;
const PipelineLayoutData * GetPipelineLayoutData ()const{return pipeline_layout_data;}
// const PipelineLayoutData * GetPipelineLayoutData ()const{return pipeline_layout_data;}
public:

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