Taking a string as a ui_input uniform

  • moriz1
  • Topic Author
More
6 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
More
6 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
More
6 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
More
6 years 1 month ago - 6 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: 6 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.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.