Grass shader heightmap problems
I'm working on a grass shader using particles. I'm starting with the source code from https://github.com/BastiaanOlij/godot-grass-tutorial/blob/master/materials-and-shaders/particle.shader. It has a sampler2D used to set the height of the grass. The problem is, if I try to add an image, the grass stays flat. It seems that certain images will displace the grass but not others. If I add a different texture, it works and the grass is displaced. It works with types of textures other than StreamTextures, (e.g. NoiseTextures) but it also works with some StreamTextures (it works with normal maps). I think it might have something to do with the format of the texture or something like that. In the top right corner of the texture, it says the dimensions of the image and something else, usually RGB8. On other textures, it sometimes says something else (normal maps say RGTC RedGreen8). Does anyone know what the problem might be and how it could be solved?