shaderlib: Implement place_texture() and provide an example, replace mix.gdshader example; implements #17

This commit is contained in:
ChaoticByte 2024-12-28 00:00:46 +01:00
parent 8b5a1cc37d
commit 1aa217776c
No known key found for this signature in database
8 changed files with 48 additions and 21 deletions

34
examples/grass.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1mh1d2f3u4ju"
path="res://.godot/imported/grass.png-30af7213ed2d70b810b4ae788314a9e9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://examples/grass.png"
dest_files=["res://.godot/imported/grass.png-30af7213ed2d70b810b4ae788314a9e9.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