Added IRenderable, removed shader programs and allow more nuanced control of render passes, UI items are now rendered same as other scene item components.
This commit is contained in:
@ -4,24 +4,11 @@
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "display/shader/ShaderManager.hpp"
|
||||
#include "scene/components/display/material/SimpleTexturedMaterial.hpp"
|
||||
#include "display/shader/ShaderParameterBuffer.hpp"
|
||||
#include "display/shader/Shader.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
struct Test123 {
|
||||
float_t r;
|
||||
float_t g;
|
||||
float_t b;
|
||||
};
|
||||
|
||||
class SimpleTexturedShaderTest : public ShaderParameterBuffer<struct Test123> {
|
||||
};
|
||||
|
||||
class SimpleTexturedShaderProgram : public ShaderProgram {
|
||||
class SimpleTexturedShader : public Shader {
|
||||
public:
|
||||
SimpleTexturedShaderTest test;
|
||||
|
||||
shaderparameter_t paramProjection;
|
||||
shaderparameter_t paramView;
|
||||
shaderparameter_t paramModel;
|
||||
@ -31,17 +18,4 @@ namespace Dawn {
|
||||
|
||||
void compile() override;
|
||||
};
|
||||
|
||||
class SimpleTexturedShader : public Shader {
|
||||
public:
|
||||
SimpleTexturedShaderProgram program;
|
||||
|
||||
void compile() override;
|
||||
|
||||
std::vector<struct ShaderPassItem> getPassItems(
|
||||
Mesh *mesh,
|
||||
Material *material,
|
||||
Camera *camera
|
||||
) override;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user