mirror of
				https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
				synced 2025-11-04 08:35:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			420 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			420 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
shader_type canvas_item;
 | 
						|
 | 
						|
void fragment() {
 | 
						|
    vec4 tex_color = texture(TEXTURE, UV);
 | 
						|
    vec4 color = tex_color;
 | 
						|
 | 
						|
    // Get pixel coordinate in texture space
 | 
						|
    vec2 tex_size = vec2(textureSize(TEXTURE, 0)); // Godot 4
 | 
						|
    ivec2 coord = ivec2(floor(UV * tex_size));
 | 
						|
 | 
						|
    // Simple checker pattern based on texture pixel positions
 | 
						|
    bool checker = (coord.x + coord.y) % 2 == 0;
 | 
						|
 | 
						|
    if (checker)
 | 
						|
	{
 | 
						|
		discard;
 | 
						|
	}
 | 
						|
}
 |