|
|
@ -56,6 +56,8 @@ union PicaShaderConfig { |
|
|
|
|
|
|
|
|
const auto& regs = Pica::g_state.regs; |
|
|
const auto& regs = Pica::g_state.regs; |
|
|
|
|
|
|
|
|
|
|
|
state.depthmap_enable = regs.depthmap_enable; |
|
|
|
|
|
|
|
|
state.alpha_test_func = regs.output_merger.alpha_test.enable ? |
|
|
state.alpha_test_func = regs.output_merger.alpha_test.enable ? |
|
|
regs.output_merger.alpha_test.func.Value() : Pica::Regs::CompareFunc::Always; |
|
|
regs.output_merger.alpha_test.func.Value() : Pica::Regs::CompareFunc::Always; |
|
|
|
|
|
|
|
|
@ -171,6 +173,8 @@ union PicaShaderConfig { |
|
|
std::array<TevStageConfigRaw, 6> tev_stages; |
|
|
std::array<TevStageConfigRaw, 6> tev_stages; |
|
|
u8 combiner_buffer_input; |
|
|
u8 combiner_buffer_input; |
|
|
|
|
|
|
|
|
|
|
|
Pica::Regs::DepthBuffering depthmap_enable; |
|
|
|
|
|
|
|
|
struct { |
|
|
struct { |
|
|
struct { |
|
|
struct { |
|
|
unsigned num; |
|
|
unsigned num; |
|
|
@ -315,6 +319,7 @@ private: |
|
|
GLvec4 const_color[6]; |
|
|
GLvec4 const_color[6]; |
|
|
GLvec4 tev_combiner_buffer_color; |
|
|
GLvec4 tev_combiner_buffer_color; |
|
|
GLint alphatest_ref; |
|
|
GLint alphatest_ref; |
|
|
|
|
|
GLfloat depth_scale; |
|
|
GLfloat depth_offset; |
|
|
GLfloat depth_offset; |
|
|
alignas(16) GLvec3 lighting_global_ambient; |
|
|
alignas(16) GLvec3 lighting_global_ambient; |
|
|
LightSrc light_src[8]; |
|
|
LightSrc light_src[8]; |
|
|
|