You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Add hint_enum for uniform int in gdshader
This commit is contained in:
@@ -59,6 +59,7 @@ public:
|
||||
TK_FLOAT_CONSTANT,
|
||||
TK_INT_CONSTANT,
|
||||
TK_UINT_CONSTANT,
|
||||
TK_STRING_CONSTANT,
|
||||
TK_TYPE_VOID,
|
||||
TK_TYPE_BOOL,
|
||||
TK_TYPE_BVEC2,
|
||||
@@ -175,6 +176,7 @@ public:
|
||||
TK_HINT_ANISOTROPY_TEXTURE,
|
||||
TK_HINT_SOURCE_COLOR,
|
||||
TK_HINT_RANGE,
|
||||
TK_HINT_ENUM,
|
||||
TK_HINT_INSTANCE_INDEX,
|
||||
TK_HINT_SCREEN_TEXTURE,
|
||||
TK_HINT_NORMAL_ROUGHNESS_TEXTURE,
|
||||
@@ -659,6 +661,7 @@ public:
|
||||
enum Hint {
|
||||
HINT_NONE,
|
||||
HINT_RANGE,
|
||||
HINT_ENUM,
|
||||
HINT_SOURCE_COLOR,
|
||||
HINT_NORMAL,
|
||||
HINT_ROUGHNESS_NORMAL,
|
||||
@@ -696,6 +699,7 @@ public:
|
||||
TextureFilter filter = FILTER_DEFAULT;
|
||||
TextureRepeat repeat = REPEAT_DEFAULT;
|
||||
float hint_range[3];
|
||||
PackedStringArray hint_enum_names;
|
||||
int instance_index = 0;
|
||||
String group;
|
||||
String subgroup;
|
||||
|
||||
Reference in New Issue
Block a user