blob: 2741fbfe94b6f2774c96e027164a33cca4075e4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[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 )
|