First phase moving from STBTT to FreeType
This commit is contained in:
@ -74,13 +74,12 @@ std::vector<struct ShaderPassItem> UILabel::getPassItems(
|
||||
this->updateMesh();
|
||||
|
||||
struct ShaderPassItem item;
|
||||
auto shader = &getGame()->renderManager.uiShader->program;
|
||||
auto shader = &getGame()->renderManager.fontShader->program;
|
||||
item.shaderProgram = shader;
|
||||
item.colorValues[shader->paramColor] = textColor;
|
||||
item.matrixValues[shader->paramProjection] = proj;
|
||||
item.matrixValues[shader->paramView] = view;
|
||||
item.matrixValues[shader->paramModel] = this->transform->getWorldTransform();
|
||||
item.boolValues[shader->paramHasTexture] = true;
|
||||
item.textureSlots[0] = this->font->getTexture();
|
||||
item.textureValues[shader->paramTexture] = 0;
|
||||
item.start = this->startQuad * QUAD_INDICE_COUNT;
|
||||
|
Reference in New Issue
Block a user