0 votes

I've made an image texture using a noise, the only problem that I am facing is that when I try to color it based on the height of the noise the edges are being blurry.

I would like to know if there's any way to change the filter mode of an image using code like we do in the import tab

I want to access this property by code

Godot version v3.4.4
in Engine by (53 points)
edited by

1 Answer

+1 vote
Best answer

By doing some research I've got a solution,

I used the flags property when generating a texture from an image

imgTexture.create_from_image(noise_img,1)

by default the flag property is set to 7 which enables the filter that makes the images a little blurry when zoomed in.

by (53 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.