Skip to content

Commit b32a485

Browse files
committed
WIP: use GLSL arrays.
1 parent 3f39e22 commit b32a485

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/commonMain/kotlin/baaahs/plugin/core/FixtureInfo.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ val fixtureInfoStruct = GlslType.Struct(
5656

5757
// TODO: Switch to `int[] name` when Kgl supports `uniform1iv`.
5858
// See: https://github.com/gergelydaniel/kgl/pull/15
59-
// GlslType.Field("name", GlslType.IntArray)
60-
GlslType.Field("name0", GlslType.Int, "The first ASCII value in the fixture entity's name, or 0."),
61-
GlslType.Field("name1", GlslType.Int),
62-
GlslType.Field("name2", GlslType.Int),
63-
GlslType.Field("name3", GlslType.Int),
64-
GlslType.Field("name4", GlslType.Int),
65-
GlslType.Field("name5", GlslType.Int),
66-
GlslType.Field("name6", GlslType.Int),
67-
GlslType.Field("name7", GlslType.Int),
59+
GlslType.Field("name", GlslType.Int.arrayOf(8), "ASCII values in the fixture entity's name, or 0's."),
60+
// GlslType.Field("name0", GlslType.Int, "The first ASCII value in the fixture entity's name, or 0."),
61+
// GlslType.Field("name1", GlslType.Int),
62+
// GlslType.Field("name2", GlslType.Int),
63+
// GlslType.Field("name3", GlslType.Int),
64+
// GlslType.Field("name4", GlslType.Int),
65+
// GlslType.Field("name5", GlslType.Int),
66+
// GlslType.Field("name6", GlslType.Int),
67+
// GlslType.Field("name7", GlslType.Int),
6868
GlslType.Field(
6969
"nameLength", GlslType.Int,
7070
"The length of the fixture entity's name."

0 commit comments

Comments
 (0)