Implement special colormap support for softpoly

This commit is contained in:
Magnus Norddahl 2020-01-17 21:58:33 +01:00
commit e68b46cb6a
11 changed files with 185 additions and 14 deletions

View file

@ -45,6 +45,8 @@ public:
PolyVertexInputAssembly *GetVertexFormat(int numBindingPoints, int numAttributes, size_t stride, const FVertexBufferAttribute *attrs);
void EndRenderPass();
void SetColormapShader(bool enable);
private:
void Apply();
void ApplyMaterial();
@ -92,6 +94,7 @@ private:
int mStencilOp = SOP_Keep;
int mCulling = Cull_None;
bool mColorMask[4] = { true, true, true, true };
bool mColormapShader = false;
PolyCommandBuffer* mDrawCommands = nullptr;
};