23cf6a85bd
Part of #4196.
15 lines
540 B
Plaintext
15 lines
540 B
Plaintext
[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 )
|
|
|