You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to write my own shader in godot 3, and have managed to get something partially working, but the ShaderMaterial is not showing the full set of Shader Params.
the problem is that only the first texture sampler is being displayed in the ShaderMaterial "Shader Param" list. Any other samplers are not displayed.
so texture_albedo_2 is displaying, but texture_albedo is not. The normal map and specular map were also not showing so I commented them out to try to simplify the problem.
The text was updated successfully, but these errors were encountered:
I can confirm this. They seem to be working fine, as in, being used in the shader, its just that they dont show up in the inspector, so changing the textures is very hard.
Any hints on which files to start looking for this?
Edit: well it seems in the editor they work, but when running the game the 2nd texture is all white, so perhaps the problem is not just in displaying the properties in the inspector
akien-mga
changed the title
[gd3.0] Only the first sampler showing up in ShaderMaterial Shader Param list
Only the first sampler showing up in ShaderMaterial Shader Param list
May 18, 2017
…), to make it more GLSL compatible
-Fixed referencing of world_transform in fragment shader not working
-Fixed unsycn bug related to getting shader param list from the server
-Fixed getting all textures from shader properly, fixesgodotengine#8353
I am trying to write my own shader in godot 3, and have managed to get something partially working, but the ShaderMaterial is not showing the full set of Shader Params.
here is my shader:
the problem is that only the first texture sampler is being displayed in the ShaderMaterial "Shader Param" list. Any other samplers are not displayed.
so texture_albedo_2 is displaying, but texture_albedo is not. The normal map and specular map were also not showing so I commented them out to try to simplify the problem.
The text was updated successfully, but these errors were encountered: