MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Paint

Method Paint

Source/Editor/Tools/Foliage/FoliageTools.cpp:180–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178};
179
180void FoliageTools::Paint(Foliage* foliage, Span<int32> foliageTypesIndices, const Vector3& brushPosition, float brushRadius, bool additive, float densityScale)
181{
182 if (additive)
183 Paint(foliage, foliageTypesIndices, brushPosition, brushRadius, densityScale);
184 else
185 Remove(foliage, foliageTypesIndices, brushPosition, brushRadius);
186}
187
188void FoliageTools::Paint(Foliage* foliage, Span<int32> foliageTypesIndices, const Vector3& brushPosition, float brushRadius, float densityScale)
189{

Callers 1

PaintUpdateMethod · 0.80

Calls 15

LookRotationFunction · 0.85
RotationAxisFunction · 0.85
GetRandomPointMethod · 0.80
GetTransformMethod · 0.80
GetLocalToWorldMatrixMethod · 0.80
GetRandomScaleMethod · 0.80
AddInstanceMethod · 0.80
RebuildClustersMethod · 0.80
RemoveFunction · 0.50
CosFunction · 0.50
RoundToIntFunction · 0.50
RandFunction · 0.50

Tested by

no test coverage detected