Uniform Additions and fixes (#1102)

This commit is contained in:
Jason Mitchell authored and Jason Mitchell committed 2025-12-06 08:21:55 -08:00
1 parent 06bf71126f
commit 1cd270fdd0
22 files changed
+846 -156

No files matched your search

@@ -16,7 +16,8 @@ public abstract class Type {
public static final Primitive[] AllPrimitives = {Type.Boolean, Type.Int, Type.Float};
public static UniformType convert(Type type) {
if (type == Type.Int || type == Type.Boolean) return UniformType.INT;
if (type == Type.Int) return UniformType.INT;
else if (type == Type.Boolean) return UniformType.INT;
else if (type == Type.Float) return UniformType.FLOAT;
else if (type == VectorType.VEC2) return UniformType.VEC2;
else if (type == VectorType.VEC3) return UniformType.VEC3;