mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:57:25 +02:00
fixing the stars again
This commit is contained in:
parent
269db0ff6f
commit
5baf993c24
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,6 @@ void Stars::render(RenderArgs* renderArgs, float alpha) {
|
||||||
auto state = gpu::StatePointer(new gpu::State());
|
auto state = gpu::StatePointer(new gpu::State());
|
||||||
// enable decal blend
|
// enable decal blend
|
||||||
state->setDepthTest(gpu::State::DepthTest(false));
|
state->setDepthTest(gpu::State::DepthTest(false));
|
||||||
state->setAntialiasedLineEnable(true); // line smoothing also smooth points
|
|
||||||
state->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);
|
state->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);
|
||||||
_gridPipeline.reset(gpu::Pipeline::create(program, state));
|
_gridPipeline.reset(gpu::Pipeline::create(program, state));
|
||||||
}
|
}
|
||||||
|
@ -153,6 +152,7 @@ void Stars::render(RenderArgs* renderArgs, float alpha) {
|
||||||
auto state = gpu::StatePointer(new gpu::State());
|
auto state = gpu::StatePointer(new gpu::State());
|
||||||
// enable decal blend
|
// enable decal blend
|
||||||
state->setDepthTest(gpu::State::DepthTest(false));
|
state->setDepthTest(gpu::State::DepthTest(false));
|
||||||
|
state->setAntialiasedLineEnable(true); // line smoothing also smooth points
|
||||||
state->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);
|
state->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA);
|
||||||
_starsPipeline.reset(gpu::Pipeline::create(program, state));
|
_starsPipeline.reset(gpu::Pipeline::create(program, state));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue