diff --git a/src/3d/shaders/pointcloud.frag b/src/3d/shaders/pointcloud.frag index 90e15e08d97a..495c66f5c76e 100644 --- a/src/3d/shaders/pointcloud.frag +++ b/src/3d/shaders/pointcloud.frag @@ -83,7 +83,7 @@ vec4 exactColorRamp() if ( abs( parameter - value ) < 0.01 ) return vec4( color, 1.0f ); } - return vec4(0.0, 0.0, 0.0, 0.0f); + return vec4(0.0, 0.0, 0.0, 1.0f); } vec4 colorRamp() @@ -91,7 +91,7 @@ vec4 colorRamp() if (u_colorRampCount<=0) return vec4(0.0,0.0,0.0,1); - vec4 colorRampResult = vec4(0.0f, 0.0f, 0.0f, 0.0f); + vec4 colorRampResult = vec4(0.0f, 0.0f, 0.0f, 1.0f); switch (u_colorRampType) { case 0: @@ -113,7 +113,7 @@ void main(void) switch (u_renderingStyle) { case 0: // no rendering - color = vec4(0.0f, 0.0f, 0.0f, 0.0f); + color = vec4(0.0f, 0.0f, 0.0f, 1.0f); break; case 1: // single color color = vec4(u_singleColor, 1.0f); diff --git a/src/3d/symbols/qgspointcloud3dsymbol_p.cpp b/src/3d/symbols/qgspointcloud3dsymbol_p.cpp index 92f8fb95a43d..20390451423f 100644 --- a/src/3d/symbols/qgspointcloud3dsymbol_p.cpp +++ b/src/3d/symbols/qgspointcloud3dsymbol_p.cpp @@ -301,7 +301,7 @@ bool QgsColorRampPointCloud3DSymbolHandler::prepare( const QgsPointCloud3DRender void QgsColorRampPointCloud3DSymbolHandler::processNode( QgsPointCloudIndex *pc, const IndexedPointCloudNode &n, const QgsPointCloud3DRenderContext &context ) { QgsPointCloudAttributeCollection attributes; - constexpr int xOffset = 0; + const int xOffset = 0; attributes.push_back( QgsPointCloudAttribute( QStringLiteral( "X" ), QgsPointCloudAttribute::Int32 ) ); const int yOffset = attributes.pointRecordSize(); attributes.push_back( QgsPointCloudAttribute( QStringLiteral( "Y" ), QgsPointCloudAttribute::Int32 ) ); @@ -536,7 +536,7 @@ bool QgsClassificationPointCloud3DSymbolHandler::prepare( const QgsPointCloud3DR void QgsClassificationPointCloud3DSymbolHandler::processNode( QgsPointCloudIndex *pc, const IndexedPointCloudNode &n, const QgsPointCloud3DRenderContext &context ) { QgsPointCloudAttributeCollection attributes; - constexpr int xOffset = 0; + const int xOffset = 0; attributes.push_back( QgsPointCloudAttribute( QStringLiteral( "X" ), QgsPointCloudAttribute::Int32 ) ); const int yOffset = attributes.pointRecordSize(); attributes.push_back( QgsPointCloudAttribute( QStringLiteral( "Y" ), QgsPointCloudAttribute::Int32 ) );