chore: continued style test
This commit is contained in:
parent
cb7138353e
commit
33b088c315
30 changed files with 302 additions and 95 deletions
16
project/assets/style/model_importer.gd
Normal file
16
project/assets/style/model_importer.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
@tool
|
||||
extends EditorScenePostImport
|
||||
|
||||
var outline_material : StandardMaterial3D
|
||||
|
||||
func _post_import(root : Node):
|
||||
outline_material = ResourceLoader.load("res://assets/style/base_outline_material.tres") as StandardMaterial3D
|
||||
apply_outline_recursive(root)
|
||||
return root
|
||||
|
||||
func apply_outline_recursive(node : Node):
|
||||
if node != null:
|
||||
if node is MeshInstance3D and outline_material:
|
||||
(node as MeshInstance3D).material_overlay = outline_material
|
||||
for child in node.get_children():
|
||||
apply_outline_recursive(child)
|
||||
Loading…
Add table
Add a link
Reference in a new issue