Taking a string as a ui_input uniform

More
2 years 7 months ago #1 by moriz1
is it possible to have a string as an input for ui_input? it works fine for numbers and single characters, but i can't use "string" as a type.

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #2 by crosire
Replied by crosire on topic Taking a string as a ui_input uniform
What do you mean? How would a string be converted to one of the uniform variable primitive types (bool, int, uint, float)?

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #3 by moriz1
Replied by moriz1 on topic Taking a string as a ui_input uniform
in the shader configuration menu, i want to be able to input the name of a file.

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #4 by crosire
Replied by crosire on topic Taking a string as a ui_input uniform
You can't use strings in shader code. The only option is to use preprocessor definitions.
Last edit: 2 years 7 months ago by crosire.
The following user(s) said Thank You: moriz1

Please Log in or Create an account to join the conversation.