Skip to content

Commit

Permalink
Better node editor slider drag speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Apr 22, 2024
1 parent f4bdc32 commit deee870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/FastNoise/Generators/BasicGenerators.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ namespace FastNoise
MetadataT()
{
groups.push_back( "Basic Generators" );
this->AddPerDimensionVariable( { "Multiplier", "Read node description" }, 0.0f, []( PositionOutput* p ) { return std::ref( p->mMultiplier ); } );
this->AddPerDimensionVariable( { "Offset", "Read node description" }, 0.0f, []( PositionOutput* p ) { return std::ref( p->mOffset ); } );
this->AddPerDimensionVariable( { "Multiplier", "Read node description" }, 0.0f, []( PositionOutput* p ) { return std::ref( p->mMultiplier ); }, 0.f, 0.f, 0.001f );
this->AddPerDimensionVariable( { "Offset", "Read node description" }, 0.0f, []( PositionOutput* p ) { return std::ref( p->mOffset ); }, 0.f, 0.f, 0.25f );

description =
"Takes the input position and does the following per dimension\n"
Expand Down
2 changes: 1 addition & 1 deletion include/FastNoise/Generators/Modifiers.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace FastNoise
{
groups.push_back( "Modifiers" );
this->AddGeneratorSource( "Source", &DomainOffset::SetSource );
this->AddPerDimensionHybridSource( "Offset", 0.0f, []( DomainOffset* p ) { return std::ref( p->mOffset ); } );
this->AddPerDimensionHybridSource( "Offset", 0.0f, []( DomainOffset* p ) { return std::ref( p->mOffset ); }, 0.25f );
}
};
#endif
Expand Down

0 comments on commit deee870

Please sign in to comment.