Add Jorge texture to res
This commit is contained in:
parent
886b840d6c
commit
855e39880e
|
@ -57,7 +57,8 @@ public class ModelLoader
|
||||||
var (_, path) = pathManager.GetResourcePath(ResourceType.ObjectTexture, campaignName, resName);
|
var (_, path) = pathManager.GetResourcePath(ResourceType.ObjectTexture, campaignName, resName);
|
||||||
if (path == null)
|
if (path == null)
|
||||||
{
|
{
|
||||||
path = "user://textures/jorge.png";
|
// Might fail in exported projects
|
||||||
|
path = "res://project/jorge.png";
|
||||||
GD.Print($"Failed to load model texture: {material.Name}");
|
GD.Print($"Failed to load model texture: {material.Name}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,8 @@ public partial class TextureLoader
|
||||||
|
|
||||||
private void LoadDefaultTexture()
|
private void LoadDefaultTexture()
|
||||||
{
|
{
|
||||||
// TODO: This should be a resource loaded from RES
|
const string path = "res://project/jorge.png";
|
||||||
const string path = "user://textures/jorge.png";
|
var texture = ResourceLoader.Load<CompressedTexture2D>(path);
|
||||||
var texture = ImageTexture.CreateFromImage(Image.LoadFromFile(path));
|
|
||||||
_textureCache.Add(texture);
|
_textureCache.Add(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 361 B |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b208ufsau5jhb"
|
||||||
|
path="res://.godot/imported/jorge.png-d1d5cd5a7775d205c32df9d2770127a7.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://project/jorge.png"
|
||||||
|
dest_files=["res://.godot/imported/jorge.png-d1d5cd5a7775d205c32df9d2770127a7.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