- Posts: 85
Taking a string as a ui_input uniform
- moriz1
-
Topic Author
- Offline
Less More
3 years 1 month ago #1 by moriz1
Taking a string as a ui_input uniform was created 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.
- crosire
-
- Offline
Less More
- Posts: 3864
3 years 1 month 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.
- moriz1
-
Topic Author
- Offline
Less More
- Posts: 85
3 years 1 month 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.
- crosire
-
- Offline
Less More
- Posts: 3864
3 years 1 month ago - 3 years 1 month 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: 3 years 1 month ago by crosire.
The following user(s) said Thank You: moriz1
Please Log in or Create an account to join the conversation.