feat: add direction particle advection
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
This commit is contained in:
@@ -178,6 +178,18 @@ TEST(Layer, RasterParticleVisualProperties) {
|
||||
EXPECT_EQ(layer.getParticleColor(), particleColor);
|
||||
}
|
||||
|
||||
TEST(Layer, RasterParticleDirectionAdvectionScale) {
|
||||
RasterParticleLayer layer{"particle", "raster-array"};
|
||||
EXPECT_FLOAT_EQ(1.0f, layer.getAdvectionScale());
|
||||
|
||||
layer.setAdvectionScale(2.5f);
|
||||
EXPECT_FLOAT_EQ(2.5f, layer.getAdvectionScale());
|
||||
layer.setAdvectionScale(0.0f);
|
||||
layer.setAdvectionScale(-1.0f);
|
||||
layer.setAdvectionScale(std::numeric_limits<float>::infinity());
|
||||
EXPECT_FLOAT_EQ(2.5f, layer.getAdvectionScale());
|
||||
}
|
||||
|
||||
TEST(Layer, WeatherColorUsesIndependentFixedOpacity) {
|
||||
WeatherColorLayer layer{"weather-color", "raster-array"};
|
||||
ASSERT_STREQ("weather-color", layer.getTypeInfo()->type);
|
||||
|
||||
Reference in New Issue
Block a user