TextureSet textureSet = TextureSet::New();
textureSet.SetTexture( 0u, texture );
- // Filter mode needs to be set to nearest to avoid blurry text.
+ // Filter mode needs to be set to linear to produce better quality while scaling.
Sampler sampler = Sampler::New();
- sampler.SetFilterMode( FilterMode::NEAREST, FilterMode::NEAREST );
+ sampler.SetFilterMode( FilterMode::LINEAR, FilterMode::LINEAR );
textureSet.SetSampler( 0u, sampler );
// Set parameters for scrolling
textureSet.SetTexture( 2u, maskTexture );
- // Filter mode needs to be set to nearest to avoid blurry text.
+ // Filter mode needs to be set to linear to produce better quality while scaling.
Sampler sampler = Sampler::New();
- sampler.SetFilterMode( FilterMode::NEAREST, FilterMode::NEAREST );
+ sampler.SetFilterMode( FilterMode::LINEAR, FilterMode::LINEAR );
textureSet.SetSampler( 0u, sampler );
textureSet.SetSampler( 1u, sampler );
textureSet.SetSampler( 2u, sampler );