mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Allow compressed texture array and cubemap types in shader globals editor
This commit is contained in:
parent
780e1a5040
commit
73e4e7ef9c
@ -219,7 +219,7 @@ protected:
|
||||
case RS::GLOBAL_VAR_TYPE_SAMPLER2DARRAY: {
|
||||
pinfo.type = Variant::OBJECT;
|
||||
pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE;
|
||||
pinfo.hint_string = "Texture2DArray";
|
||||
pinfo.hint_string = "Texture2DArray,CompressedTexture2DArray";
|
||||
} break;
|
||||
case RS::GLOBAL_VAR_TYPE_SAMPLER3D: {
|
||||
pinfo.type = Variant::OBJECT;
|
||||
@ -229,7 +229,7 @@ protected:
|
||||
case RS::GLOBAL_VAR_TYPE_SAMPLERCUBE: {
|
||||
pinfo.type = Variant::OBJECT;
|
||||
pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE;
|
||||
pinfo.hint_string = "Cubemap";
|
||||
pinfo.hint_string = "Cubemap,CompressedCubemap";
|
||||
} break;
|
||||
default: {
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user