2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-03-17 03:41:01 +00:00
|
|
|
|
2019-09-29 00:30:53 +00:00
|
|
|
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
2018-03-17 03:41:01 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-03-23 21:56:17 +00:00
|
|
|
struct CQuadDecal;
|
2018-03-17 03:41:01 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CDecalShaders {
|
2018-03-17 03:41:01 +00:00
|
|
|
private:
|
2020-08-02 06:53:12 +00:00
|
|
|
static inline boo::ObjToken<boo::IShaderPipeline> m_texZTestNoZWrite;
|
|
|
|
static inline boo::ObjToken<boo::IShaderPipeline> m_texAdditiveZTest;
|
|
|
|
static inline boo::ObjToken<boo::IShaderPipeline> m_texRedToAlphaZTest;
|
2018-03-17 03:41:01 +00:00
|
|
|
|
2020-08-02 06:53:12 +00:00
|
|
|
static inline boo::ObjToken<boo::IShaderPipeline> m_noTexZTestNoZWrite;
|
|
|
|
static inline boo::ObjToken<boo::IShaderPipeline> m_noTexAdditiveZTest;
|
2018-03-17 03:41:01 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CQuadDecal& decal);
|
2018-03-17 03:41:01 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|