mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 09:07:42 +00:00
Huge shader refactor
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#ifndef URDE_CWORLDSHADOWSHADER_HPP
|
||||
#define URDE_CWORLDSHADOWSHADER_HPP
|
||||
|
||||
#include "TShader.hpp"
|
||||
#include "CColoredQuadFilter.hpp"
|
||||
#include "CTexturedQuadFilter.hpp"
|
||||
|
||||
@@ -10,11 +9,6 @@ namespace urde
|
||||
|
||||
class CWorldShadowShader
|
||||
{
|
||||
friend struct CWorldShadowShaderGLDataBindingFactory;
|
||||
friend struct CWorldShadowShaderVulkanDataBindingFactory;
|
||||
friend struct CWorldShadowShaderD3DDataBindingFactory;
|
||||
friend struct CWorldShadowShaderMetalDataBindingFactory;
|
||||
|
||||
boo::ObjToken<boo::ITextureR> m_tex;
|
||||
std::experimental::optional<CTexturedQuadFilter> m_prevQuad;
|
||||
u32 m_w, m_h;
|
||||
@@ -31,6 +25,8 @@ class CWorldShadowShader
|
||||
Uniform m_uniform;
|
||||
|
||||
public:
|
||||
static void Initialize();
|
||||
static void Shutdown();
|
||||
CWorldShadowShader(u32 w, u32 h);
|
||||
void bindRenderTarget();
|
||||
void drawBase(float extent);
|
||||
@@ -42,9 +38,6 @@ public:
|
||||
u32 GetHeight() const { return m_h; }
|
||||
|
||||
const boo::ObjToken<boo::ITextureR>& GetTexture() const { return m_tex; }
|
||||
|
||||
using _CLS = CWorldShadowShader;
|
||||
#include "TShaderDecl.hpp"
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user