mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 08:22:59 +00:00
Implement global and per instance shader uniforms.
Adds two keywords to shader language for uniforms: -'global' -'instance' This allows them to reference values outside the material.
This commit is contained in:
@@ -741,6 +741,13 @@ void EditorPropertyDictionary::update_property() {
|
||||
editor->setup(-100000, 100000, 0.001, true);
|
||||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::VECTOR2I: {
|
||||
|
||||
EditorPropertyVector2i *editor = memnew(EditorPropertyVector2i);
|
||||
editor->setup(-100000, 100000, true);
|
||||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::RECT2: {
|
||||
|
||||
@@ -748,6 +755,13 @@ void EditorPropertyDictionary::update_property() {
|
||||
editor->setup(-100000, 100000, 0.001, true);
|
||||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::RECT2I: {
|
||||
|
||||
EditorPropertyRect2i *editor = memnew(EditorPropertyRect2i);
|
||||
editor->setup(-100000, 100000, true);
|
||||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::VECTOR3: {
|
||||
|
||||
@@ -755,6 +769,13 @@ void EditorPropertyDictionary::update_property() {
|
||||
editor->setup(-100000, 100000, 0.001, true);
|
||||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::VECTOR3I: {
|
||||
|
||||
EditorPropertyVector3i *editor = memnew(EditorPropertyVector3i);
|
||||
editor->setup(-100000, 100000, true);
|
||||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM2D: {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user