class PartSettingsTexture : public RefCountedObject
Texture part settings.
bool environmentMapping() const
Returns true if environment mapping is enabled.
void setEnvironmentMapping(bool useEnvironmentMapping)
Enables/disables use of environment mapping.
float repeatFactor() const
Returns the repeat factor of the texture.
void setRepeatFactor(float repeatFactor)
Sets the repeat factor of the texture.
bool autoScaling() const
Returns true if auto scaling is enabled.
void setAutoScaling(bool autoScaling)
Enables/disables auto scaling.
void setModulate(bool modulate)
Sets if the texture lookup should be modulated with the part color or not.
If true, the resulting color of each fragment is the multiplication of the texture texel and the part color. If false, the part color is ignored.
bool filterNearest() const
Returns true if filter texture sampler should be set to NEAREST.
void setFilterNearest(bool filterNearest)
Sets the min and mag filter of the texture sampler.
If true, NEAREST will be used for both min and mag. This will result in a “blocky” texture as just the closest texel (pixel) will be used and no interpolation. If false, LINEAR will be used for both min and mag. This will result in a more smooth texture as a linear interpolation will be done between the pixels in the texture.
- bool environmentMapping() const