Taking a string as a ui_input uniform

  • Posts: 85
2 years 5 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.

  • Posts: 3747
2 years 5 months ago #2 by crosire
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.

  • Posts: 85
2 years 5 months ago #3 by moriz1
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.

  • Posts: 3747
2 years 5 months ago - 2 years 5 months ago #4 by crosire
You can't use strings in shader code. The only option is to use preprocessor definitions.
The following user(s) said Thank You: moriz1

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