importing bork texture and scaling independend shader

This commit is contained in:
betalars 2023-06-27 13:49:44 +02:00
parent 6bfead3573
commit b5559de171
3 changed files with 42 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 MiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bi3xqdknw5tpe"
path.s3tc="res://.godot/imported/Cork002_2K_Color.png-295348789c534b25ecb17ae72511003c.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://logic-scenes/board/board-texture/Cork002_2K_Color.png"
dest_files=["res://.godot/imported/Cork002_2K_Color.png-295348789c534b25ecb17ae72511003c.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

View File

@ -0,0 +1,7 @@
shader_type canvas_item;
uniform sampler2D tex : repeat_enable;
uniform float magic_scale_factor = 1500;
void fragment() {
COLOR = texture(tex, FRAGCOORD.xy/magic_scale_factor);
}