diff options
Diffstat (limited to 'demos/2d/normalmaps')
-rw-r--r-- | demos/2d/normalmaps/diffuse.jpg | bin | 309334 -> 0 bytes | |||
-rw-r--r-- | demos/2d/normalmaps/engine.cfg | 12 | ||||
-rw-r--r-- | demos/2d/normalmaps/icon.png | bin | 10402 -> 0 bytes | |||
-rw-r--r-- | demos/2d/normalmaps/light.png | bin | 243776 -> 0 bytes | |||
-rw-r--r-- | demos/2d/normalmaps/normal.jpg | bin | 501428 -> 0 bytes | |||
-rw-r--r-- | demos/2d/normalmaps/normal_material.tres | 14 | ||||
-rw-r--r-- | demos/2d/normalmaps/normalmap.tscn | 63 |
7 files changed, 0 insertions, 89 deletions
diff --git a/demos/2d/normalmaps/diffuse.jpg b/demos/2d/normalmaps/diffuse.jpg Binary files differdeleted file mode 100644 index b6f32fd825..0000000000 --- a/demos/2d/normalmaps/diffuse.jpg +++ /dev/null diff --git a/demos/2d/normalmaps/engine.cfg b/demos/2d/normalmaps/engine.cfg deleted file mode 100644 index ba5fcca853..0000000000 --- a/demos/2d/normalmaps/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="2D Normal Mapping" -main_scene="res://normalmap.tscn" -icon="res://icon.png" - -[display] - -stretch_mode="2d" -width=800 -height=600 -stretch_aspect="ignore" diff --git a/demos/2d/normalmaps/icon.png b/demos/2d/normalmaps/icon.png Binary files differdeleted file mode 100644 index 11ff5de829..0000000000 --- a/demos/2d/normalmaps/icon.png +++ /dev/null diff --git a/demos/2d/normalmaps/light.png b/demos/2d/normalmaps/light.png Binary files differdeleted file mode 100644 index 9568298086..0000000000 --- a/demos/2d/normalmaps/light.png +++ /dev/null diff --git a/demos/2d/normalmaps/normal.jpg b/demos/2d/normalmaps/normal.jpg Binary files differdeleted file mode 100644 index 848ee9a9cd..0000000000 --- a/demos/2d/normalmaps/normal.jpg +++ /dev/null diff --git a/demos/2d/normalmaps/normal_material.tres b/demos/2d/normalmaps/normal_material.tres deleted file mode 100644 index 2741fbfe94..0000000000 --- a/demos/2d/normalmaps/normal_material.tres +++ /dev/null @@ -1,14 +0,0 @@ -[gd_resource type="CanvasItemMaterial" load_steps=3 format=1] - -[ext_resource path="res://normal.jpg" type="Texture" id=1] - -[sub_resource type="CanvasItemShader" id=1] - -_code = { "fragment":"uniform texture normal;\n//normal maps expect Y-up, but 2D is Y-down, so must mirror this.\nNORMAL = tex(normal,UV).rgb * vec3(2.0,-2.0,1.0) - vec3(1.0,-1.0,0.0);", "fragment_ofs":0, "light":"", "light_ofs":0, "vertex":"", "vertex_ofs":0 } - -[resource] - -shader/shader = SubResource( 1 ) -shader/shading_mode = 0 -shader_param/normal = ExtResource( 1 ) - diff --git a/demos/2d/normalmaps/normalmap.tscn b/demos/2d/normalmaps/normalmap.tscn deleted file mode 100644 index c7f8feb0f4..0000000000 --- a/demos/2d/normalmaps/normalmap.tscn +++ /dev/null @@ -1,63 +0,0 @@ -[gd_scene load_steps=5 format=1] - -[ext_resource path="res://normal_material.tres" type="CanvasItemMaterial" id=1] -[ext_resource path="res://diffuse.jpg" type="Texture" id=2] -[ext_resource path="res://light.png" type="Texture" id=3] - -[sub_resource type="Animation" id=1] - -resource/name = "motion" -length = 10.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath("light:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 2.5, 5, 7.5 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 177.912, 174.508 ), Vector2( 612.159, 161.147 ), Vector2( 667.275, 526.917 ), Vector2( 177.912, 526.917 ) ] } - -[node name="base" type="Node2D"] - -[node name="sprite" type="Sprite" parent="."] - -material/material = ExtResource( 1 ) -transform/pos = Vector2( 400, 300 ) -texture = ExtResource( 2 ) - -[node name="ambient" type="CanvasModulate" parent="."] - -color = Color( 0.0657094, 0.202485, 0.328838, 1 ) - -[node name="light" type="Light2D" parent="."] - -transform/pos = Vector2( 177.912, 174.508 ) -enabled = true -texture = ExtResource( 3 ) -offset = Vector2( 0, 0 ) -scale = 0.8 -color = Color( 1, 1, 1, 1 ) -energy = 1.0 -mode = 0 -range/height = 200.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = false -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 - -[node name="anim" type="AnimationPlayer" parent="."] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/motion = SubResource( 1 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "motion" - - |