mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
CWebRender pt2
This commit is contained in:
parent
1190eb1c6a
commit
fe181d242f
22 changed files with 1623 additions and 489 deletions
|
|
@ -42,7 +42,8 @@ enum ShaderFeatures {
|
|||
ENABLE_MASK=0x800,
|
||||
ENABLE_NO_PREMUL_ALPHA=0x1000,
|
||||
ENABLE_DEAA=0x2000,
|
||||
ENABLE_DYNAMIC_GEOMETRY=0x4000
|
||||
ENABLE_DYNAMIC_GEOMETRY=0x4000,
|
||||
ENABLE_TEXTURE_TINT=0x8000
|
||||
};
|
||||
|
||||
class KnownUniform {
|
||||
|
|
@ -83,6 +84,7 @@ public:
|
|||
ViewportSize,
|
||||
VisibleCenter,
|
||||
YuvColorMatrix,
|
||||
TextureTint,
|
||||
|
||||
KnownUniformCount
|
||||
};
|
||||
|
|
@ -218,6 +220,7 @@ public:
|
|||
{}
|
||||
|
||||
void SetRenderColor(bool aEnabled);
|
||||
void SetTextureTint(bool aEnabled);
|
||||
void SetTextureTarget(GLenum aTarget);
|
||||
void SetRBSwap(bool aEnabled);
|
||||
void SetNoAlpha(bool aEnabled);
|
||||
|
|
@ -463,6 +466,10 @@ public:
|
|||
SetUniform(KnownUniform::RenderColor, aColor);
|
||||
}
|
||||
|
||||
void SetTextureTint(const gfx::Color& aColor) {
|
||||
SetUniform(KnownUniform::TextureTint, aColor);
|
||||
}
|
||||
|
||||
void SetColorMatrix(const gfx::Matrix5x4& aColorMatrix)
|
||||
{
|
||||
SetMatrixUniform(KnownUniform::ColorMatrix, &aColorMatrix._11);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue