-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
The name of the uniforms isn't properly cut.
This is because of the code at the constructor of ShaderUniform:
TrippyGL/TrippyGL/ShaderUniform.cs
Lines 49 to 60 in 2ef708c
| internal ShaderUniform(ShaderProgram owner, int uniformLoc, string name, int size, UniformType type) | |
| { | |
| OwnerProgram = owner; | |
| UniformLocation = uniformLoc; | |
| Size = size; | |
| UniformType = type; | |
| // The name might come as array name for array uniforms. | |
| // We need to turn the name "arrayUniform[0]" into just "arrayUniform" | |
| int nameIndexOfThing = name.LastIndexOf('['); | |
| Name = nameIndexOfThing > 0 ? name.Substring(0, nameIndexOfThing) : name; | |
Metadata
Metadata
Assignees
Labels
No labels
