mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
Merge pull request #6564 from sethalves/fix-line-overlays
fix 3d line overlays
This commit is contained in:
commit
2ace061893
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include <GeometryCache.h>
|
#include <GeometryCache.h>
|
||||||
#include <RegisteredMetaTypes.h>
|
#include <RegisteredMetaTypes.h>
|
||||||
|
#include <DeferredLightingEffect.h>
|
||||||
|
|
||||||
|
|
||||||
QString const Line3DOverlay::TYPE = "line3d";
|
QString const Line3DOverlay::TYPE = "line3d";
|
||||||
|
@ -53,6 +54,7 @@ void Line3DOverlay::render(RenderArgs* args) {
|
||||||
auto batch = args->_batch;
|
auto batch = args->_batch;
|
||||||
if (batch) {
|
if (batch) {
|
||||||
batch->setModelTransform(_transform);
|
batch->setModelTransform(_transform);
|
||||||
|
DependencyManager::get<DeferredLightingEffect>()->bindSimpleProgram(*batch);
|
||||||
|
|
||||||
if (getIsDashedLine()) {
|
if (getIsDashedLine()) {
|
||||||
// TODO: add support for color to renderDashedLine()
|
// TODO: add support for color to renderDashedLine()
|
||||||
|
|
Loading…
Reference in a new issue