mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:54:25 +02:00
Merge pull request #5289 from jherico/marge
Improve batched font rendering smoothing
This commit is contained in:
commit
81c74dda1f
2 changed files with 2 additions and 2 deletions
|
@ -343,7 +343,7 @@ void Font3D::setupGPU() {
|
|||
gpu::StatePointer state = gpu::StatePointer(new gpu::State());
|
||||
state->setCullMode(gpu::State::CULL_BACK);
|
||||
state->setDepthTest(true, true, gpu::LESS_EQUAL);
|
||||
state->setBlendFunction(false,
|
||||
state->setBlendFunction(true,
|
||||
gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA,
|
||||
gpu::State::FACTOR_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::ONE);
|
||||
_pipeline = gpu::PipelinePointer(gpu::Pipeline::create(program, state));
|
||||
|
|
|
@ -18,7 +18,7 @@ uniform vec4 Color;
|
|||
varying vec4 interpolatedNormal;
|
||||
|
||||
const float gamma = 2.2;
|
||||
const float smoothing = 64.0;
|
||||
const float smoothing = 256.0;
|
||||
const float interiorCutoff = 0.8;
|
||||
const float outlineExpansion = 0.2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue