How to set Mipmap filtermode with code
Cocos
SEPTEMBER 23, 2024
Hi friends I came here because I have a question. I’m using FilterMode to modify some textures in the game I’m developing. I’m midifying the image by setting FilterMode: Bilinear with mipmaps, Wrap Mode: Clamp in the editor, How can I reflect this effect in code? I’m currently using the following code, but the effect is different from what I set in the editor. spriteFrame.texture.setMipFilter(2); spriteFrame.texture.setFilters( Texture2D.Filter.LINEAR, Texture2D.Filter.LINEAR ); spriteF.
Let's personalize your content