diff --git a/doc/demo11_particle_light/image/light1.gif b/doc/demo11_particle_light/image/light1.gif new file mode 100644 index 0000000..c74d0fa Binary files /dev/null and b/doc/demo11_particle_light/image/light1.gif differ diff --git a/doc/demo11_particle_light/image/light2.jpg.import b/doc/demo11_particle_light/image/light2.jpg.import new file mode 100644 index 0000000..357337b --- /dev/null +++ b/doc/demo11_particle_light/image/light2.jpg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/light2.jpg-8e71ba3d22e5505a8c0b19e5861928f5.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo11_particle_light/image/light2.jpg" +dest_files=[ "res://.import/light2.jpg-8e71ba3d22e5505a8c0b19e5861928f5.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo11_particle_light/particle.md b/doc/demo11_particle_light/particle.md index 281caa9..4abfa43 100644 --- a/doc/demo11_particle_light/particle.md +++ b/doc/demo11_particle_light/particle.md @@ -3,9 +3,7 @@ - godot 的 2D 动态光照 - 首先看看 Demo 的预览效果。可以看到,当我们在 Demo 中移动光源的位置,小人和场景也会随之表现出不同光照的情景 - +![Image text](image/light1.gif) - 那么它和普通的 Sprite 有什么区别呢? 通过对比不难看出它们的差别主要是集中在材质上面。小人使用了自定义的 mat_normal 材质