This mirrors the previous refactor of the TextRenderer. All calls to draw_rect and draw_triangle now buffer vertex data (position and color). A begin()/flush() system is introduced to manage batching.
		
			
				
	
	
		
			9 lines
		
	
	
		
			109 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			109 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
#version 330 core
 | 
						|
out vec4 FragColor;
 | 
						|
 | 
						|
in vec3 ourColor;
 | 
						|
 | 
						|
void main() {
 | 
						|
  FragColor = vec4(ourColor, 1.0);
 | 
						|
}
 |