Welcome, Guest.
Username: Password: Remember me

TOPIC: Taking a string as a ui_input uniform

Taking a string as a ui_input uniform 4 months 2 weeks ago #1

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.
The administrator has disabled public write access.

Taking a string as a ui_input uniform 4 months 2 weeks ago #2

What do you mean? How would a string be converted to one of the uniform variable primitive types (bool, int, uint, float)?
Cheers, crosire =)
The administrator has disabled public write access.

Taking a string as a ui_input uniform 4 months 2 weeks ago #3

in the shader configuration menu, i want to be able to input the name of a file.
The administrator has disabled public write access.

Taking a string as a ui_input uniform 4 months 2 weeks ago #4

You can't use strings in shader code. The only option is to use preprocessor definitions.
Cheers, crosire =)
Last Edit: 4 months 2 weeks ago by crosire.
The administrator has disabled public write access.
The following user(s) said Thank You: moriz1