Add Sky debug texture and add hardecoded texture IDs
This commit is contained in:
parent
855e39880e
commit
af643b0388
|
@ -16,14 +16,15 @@ public partial class TextureLoader
|
||||||
public TextureLoader(string fmName)
|
public TextureLoader(string fmName)
|
||||||
{
|
{
|
||||||
_fmName = fmName;
|
_fmName = fmName;
|
||||||
LoadDefaultTexture();
|
LoadDefaultTextures();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadDefaultTexture()
|
private void LoadDefaultTextures()
|
||||||
{
|
{
|
||||||
const string path = "res://project/jorge.png";
|
_textureCache.Add(ResourceLoader.Load<CompressedTexture2D>("res://project/jorge.png"));
|
||||||
var texture = ResourceLoader.Load<CompressedTexture2D>(path);
|
_textureCache.Add(ResourceLoader.Load<CompressedTexture2D>("res://project/sky.png"));
|
||||||
_textureCache.Add(texture);
|
_idMap.Add(0, 0);
|
||||||
|
_idMap.Add(249, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Register(int id, string path)
|
public bool Register(int id, string path)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 272 B |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://d1rqwnr7u0rq7"
|
||||||
|
path="res://.godot/imported/sky.png-312b3ba912840be802229125c22a74bb.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://project/sky.png"
|
||||||
|
dest_files=["res://.godot/imported/sky.png-312b3ba912840be802229125c22a74bb.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
Loading…
Reference in New Issue