mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-27 23:46:01 +00:00
Uniform Additions and fixes (#1102)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user