ProjectionBlock.tscn 827 B

123456789101112131415161718192021222324252627282930313233
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://shaders/projection_shader.shader" type="Shader" id=1]
  3. [ext_resource path="res://scripts/Projection.gd" type="Script" id=2]
  4. [sub_resource type="ShaderMaterial" id=1]
  5. shader = ExtResource( 1 )
  6. shader_param/color = Color( 0.423529, 0.0235294, 0.533333, 1 )
  7. shader_param/margin = 0.2
  8. [sub_resource type="ImageTexture" id=2]
  9. flags = 23
  10. flags = 23
  11. size = Vector2( 100, 100 )
  12. [node name="Block" type="Node2D"]
  13. z_as_relative = false
  14. script = ExtResource( 2 )
  15. [node name="TextureRect" type="TextureRect" parent="."]
  16. material = SubResource( 1 )
  17. margin_left = -50.0
  18. margin_top = -50.0
  19. margin_right = 50.0
  20. margin_bottom = 50.0
  21. rect_pivot_offset = Vector2( 50, 50 )
  22. size_flags_horizontal = 3
  23. texture = SubResource( 2 )
  24. expand = true
  25. __meta__ = {
  26. "_edit_use_anchors_": false
  27. }