mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 07:25:22 +01:00 
			
		
		
		
	Client: upscale [mask or base image (#15205)
This improves texture pack compatibility. Masks are expected to be of the same size as the base texture. This change upscales the smaller texture if needed. The behaviour is now the same as a.png^b.png and a.png^[overlay:b.png (to mention a few).
This commit is contained in:
		| @@ -52,6 +52,12 @@ minetest.register_node("testnodes:fill_positioning_reference", { | ||||
| 	groups = {dig_immediate = 3}, | ||||
| }) | ||||
|  | ||||
| minetest.register_node("testnodes:modifier_mask", { | ||||
| 	description = S("[mask Modifier Test Node"), | ||||
| 	tiles = {"testnodes_128x128_rgb.png^[mask:testnodes_mask_WRGBKW.png"}, | ||||
| 	groups = {dig_immediate = 3}, | ||||
| }) | ||||
|  | ||||
| -- Node texture transparency test | ||||
|  | ||||
| local alphas = { 64, 128, 191 } | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								games/devtest/mods/testnodes/textures/testnodes_128x128_rgb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								games/devtest/mods/testnodes/textures/testnodes_128x128_rgb.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								games/devtest/mods/testnodes/textures/testnodes_mask_WRGBKW.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								games/devtest/mods/testnodes/textures/testnodes_mask_WRGBKW.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 148 B | 
		Reference in New Issue
	
	Block a user