2
0
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:
Jack Andersen
2018-10-06 16:59:17 -10:00
parent 0a0a581f2d
commit c307e354ca
184 changed files with 8777 additions and 14295 deletions

View File

@@ -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"
};
}