Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 22, 2020
1 parent 82f0257 commit f749089
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/src/3d/testqgs3drendering.cpp
Expand Up @@ -306,6 +306,7 @@ void TestQgs3DRendering::testTerrainShading()

QgsPointLightSettings defaultLight;
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
defaultLight.setIntensity( 0.5 );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

QgsOffscreen3DEngine engine;
Expand Down Expand Up @@ -365,6 +366,7 @@ void TestQgs3DRendering::testExtrudedPolygons()
map->setLayers( QList<QgsMapLayer *>() << mLayerBuildings );
map->setTerrainLayers( QList<QgsMapLayer *>() << mLayerRgb );
QgsPointLightSettings defaultLight;
defaultLight.setIntensity( 0.5 );
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

Expand Down Expand Up @@ -417,6 +419,7 @@ void TestQgs3DRendering::testPolygonsEdges()

map->setLayers( QList<QgsMapLayer *>() << layer.get() );
QgsPointLightSettings defaultLight;
defaultLight.setIntensity( 0.5 );
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

Expand Down Expand Up @@ -517,6 +520,7 @@ void TestQgs3DRendering::testBufferedLineRendering()
map->setOrigin( QgsVector3D( fullExtent.center().x(), fullExtent.center().y(), 0 ) );
map->setLayers( QList<QgsMapLayer *>() << layerLines );
QgsPointLightSettings defaultLight;
defaultLight.setIntensity( 0.5 );
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

Expand Down Expand Up @@ -563,6 +567,7 @@ void TestQgs3DRendering::testBufferedLineRenderingWidth()
map->setOrigin( QgsVector3D( fullExtent.center().x(), fullExtent.center().y(), 0 ) );
map->setLayers( QList<QgsMapLayer *>() << layerLines );
QgsPointLightSettings defaultLight;
defaultLight.setIntensity( 0.5 );
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

Expand Down Expand Up @@ -632,6 +637,7 @@ void TestQgs3DRendering::testMesh()
map->setLayers( QList<QgsMapLayer *>() << mLayerMeshDataset );
map->setTerrainLayers( QList<QgsMapLayer *>() << mLayerMeshDataset );
QgsPointLightSettings defaultLight;
defaultLight.setIntensity( 0.5 );
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

Expand Down Expand Up @@ -684,6 +690,7 @@ void TestQgs3DRendering::testRuleBasedRenderer()
map->setLayers( QList<QgsMapLayer *>() << mLayerBuildings );

QgsPointLightSettings defaultLight;
defaultLight.setIntensity( 0.5 );
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

Expand Down

0 comments on commit f749089

Please sign in to comment.