This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @tool | |
| extends EditorScenePostImport | |
| class MeshInstanceList: | |
| var mesh: Mesh | |
| var aabb: AABB | |
| var transforms: Array | |
| # Converts geometry node instances into MultiMeshInstances | |
| func gn_instances_to_mm(parent: Node, scene: Node): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export var viewportResizeStanddown = 0.5 | |
| var viewportResizeCounter = 0.0 | |
| signal settingsChanged() | |
| signal particlesSettingsChanged() | |
| signal removeGpuParticles() | |
| func forbidParticles(time): | |
| particlesForbiddenCounter = time | |
| particlesForbidden = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [gd_resource type="Theme" load_steps=12 format=3 uid="uid://7bvxnk5n5imx"] | |
| [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6h42l"] | |
| content_margin_left = 10.5 | |
| content_margin_top = 8.75 | |
| content_margin_right = 10.5 | |
| content_margin_bottom = 8.75 | |
| bg_color = Color(0.117647, 0.117647, 0.117647, 1) | |
| draw_center = false | |
| border_color = Color(1, 1, 1, 0.137255) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Node | |
| # Based on this tweet by Clay John: | |
| # https://twitter.com/john_clayjohn/status/1306447928932753408 | |
| func _ready() -> void: | |
| # Create a local rendering device. | |
| var rd := RenderingServer.create_local_rendering_device() | |