Skip to content

Commit f9d24c4

Browse files
authored
Merge pull request #9 from VRLabs/1.0-updates
Added int type on variables
2 parents 3b3346e + bdf4a37 commit f9d24c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Editor/Scriptables/Variable.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public string GetDefinition()
8383
return $"UNITY_DECLARE_TEXCUBEARRAY({Name});";
8484
case VariableType.UnityTexCubeArrayNoSampler:
8585
return $"UNITY_DECLARE_TEXCUBEARRAY_NOSAMPLER({Name});";
86+
case VariableType.Int:
87+
return $"int {Name};";
8688
case VariableType.Custom:
8789
return $"{CustomType} {Name};";
8890
}
@@ -144,6 +146,7 @@ public enum VariableType
144146
UnityTex2DArrayNoSampler,
145147
UnityTexCubeArray,
146148
UnityTexCubeArrayNoSampler,
149+
Int,
147150
Custom = 999
148151
}
149152
}

0 commit comments

Comments
 (0)