HexTilingParams class
Copyright (c) 2023-2024 Casey Primozic and others
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Constructors
- HexTilingParams({double patchScale = 2, bool useContrastCorrectedBlending = true, double lookupSkipThreshold = 0.01, double textureSampleCoefficientExponent = 8})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
json
→ Map<
String, dynamic> -
no setter
- lookupSkipThreshold ↔ double
-
The magnitude under which texture lookups will be skipped.
getter/setter pair
- patchScale ↔ double
-
Scale factor for the hexagonal tiles used to break up the texture. This is the most important
parameter for controlling the look of the hex tiling and likely needs to be adjusted for each
texture.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textureSampleCoefficientExponent ↔ double
-
The exponent to which texture sample coefficients are raised before comparing to
lookupSkipThreshold.getter/setter pair - useContrastCorrectedBlending ↔ bool
-
If set to true, contrast-corrected blending will be used to blend between the texture samples. This
greatly improves the quality of the blending for most textures, but can sometimes create very bright
or very dark patches if the texture has a lot of contrast.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setValueFromString(
String key, dynamic value) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
dynamic key) → dynamic -
operator []=(
String key, dynamic value) → void