-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
2,866 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,41 @@ | ||
#pragma once | ||
#include "Generator.h" | ||
#include "DomainWarp.h" | ||
|
||
namespace FastNoise | ||
{ | ||
class DomainWarpOpenSimplex : public virtual DomainWarp | ||
{ | ||
public: const Metadata& GetMetadata() const override; | ||
}; | ||
|
||
#ifdef FASTNOISE_METADATA | ||
template<> | ||
struct MetadataT<DomainWarpOpenSimplex> : MetadataT<DomainWarp> | ||
{ | ||
SmartNode<> CreateNode( FastSIMD::FeatureSet ) const override; | ||
}; | ||
#endif | ||
} | ||
#pragma once | ||
#include "Generator.h" | ||
#include "DomainWarp.h" | ||
|
||
namespace FastNoise | ||
{ | ||
class DomainWarpSimplex : public virtual DomainWarp | ||
{ | ||
public: | ||
const Metadata& GetMetadata() const override; | ||
|
||
void SetType( SimplexType value ) { mType = value; } | ||
void SetVectorizationScheme( VectorizationScheme value ) { mVectorizationScheme = value; } | ||
|
||
protected: | ||
SimplexType mType = SimplexType::Standard; | ||
VectorizationScheme mVectorizationScheme = VectorizationScheme::OrthogonalGradientMatrix; | ||
}; | ||
|
||
#ifdef FASTNOISE_METADATA | ||
template<> | ||
struct MetadataT<DomainWarpSimplex> : MetadataT<DomainWarp> | ||
{ | ||
SmartNode<> CreateNode( FastSIMD::FeatureSet ) const override; | ||
|
||
MetadataT() | ||
{ | ||
this->AddVariableEnum( | ||
{ "Type", "Noise character style" }, | ||
SimplexType::Standard, &DomainWarpSimplex::SetType, | ||
kSimplexType_Strings | ||
); | ||
this->AddVariableEnum( | ||
{ "Vectorization Scheme", "Construction used by the noise to produce a vector output" }, | ||
VectorizationScheme::OrthogonalGradientMatrix, &DomainWarpSimplex::SetVectorizationScheme, | ||
kVectorizationScheme_Strings | ||
); | ||
} | ||
}; | ||
#endif | ||
} |
1,216 changes: 1,062 additions & 154 deletions
1,216
include/FastNoise/Generators/DomainWarpSimplex.inl
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.