Skip to content
Discussion options

You must be logged in to vote

You shouldn't need to rename it. For the albedo uniform, it automatically detects the texture, you just need to set the albedo uniform so it matches 1:1 with the uniform for the shader material. Behind the scenes it is calling set_shader_parameter(). You might need to rename the albedo uniform to be texture_albedo in your shader(iirc that's what it matches against. @RhapsodyInGeek can probably confirm) I'm misremembering, you just set the uniform value to match what it is in your shader.

https://docs.godotengine.org/en/stable/classes/class_shadermaterial.html#class-shadermaterial-method-set-shader-parameter

You would only need to rename your textures if you wanted to apply multiple unifor…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@klownkaids-commits
Comment options

Comment options

You must be logged in to vote
5 replies
@klownkaids-commits
Comment options

@RisingThumb
Comment options

@klownkaids-commits
Comment options

@RisingThumb
Comment options

@klownkaids-commits
Comment options

Answer selected by klownkaids-commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants