glTF2: Use better mipmap filter defaults
parent
c91e9a94da
commit
5939d81138
|
@ -283,7 +283,7 @@ void glTF2Exporter::GetTexSampler(const aiMaterial* mat, Ref<Texture> texture)
|
||||||
|
|
||||||
// Hard coded Texture filtering options because I do not know where to find them in the aiMaterial.
|
// Hard coded Texture filtering options because I do not know where to find them in the aiMaterial.
|
||||||
texture->sampler->magFilter = SamplerMagFilter_Linear;
|
texture->sampler->magFilter = SamplerMagFilter_Linear;
|
||||||
texture->sampler->minFilter = SamplerMinFilter_Linear;
|
texture->sampler->minFilter = SamplerMinFilter_Linear_Mipmap_Linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
void glTF2Exporter::GetMatTex(const aiMaterial* mat, Ref<Texture>& texture, aiTextureType tt)
|
void glTF2Exporter::GetMatTex(const aiMaterial* mat, Ref<Texture>& texture, aiTextureType tt)
|
||||||
|
|
Loading…
Reference in New Issue