mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	gl_shader_gen: Fix directional lights.
This commit is contained in:
		
							parent
							
								
									bdc72d0904
								
							
						
					
					
						commit
						5f3bad8fb1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -416,7 +416,7 @@ vec4 secondary_fragment_color = vec4(0.0); | ||||||
|             std::string light_src = "light_src[" + std::to_string(num) + "]"; |             std::string light_src = "light_src[" + std::to_string(num) + "]"; | ||||||
| 
 | 
 | ||||||
|             if (config.light_src[light_index].directional) |             if (config.light_src[light_index].directional) | ||||||
|                 out += "light_vector = normalize(-" + light_src + ".position);\n"; |                 out += "light_vector = normalize(" + light_src + ".position);\n"; | ||||||
|             else |             else | ||||||
|                 out += "light_vector = normalize(" + light_src + ".position - fragment_position);\n"; |                 out += "light_vector = normalize(" + light_src + ".position - fragment_position);\n"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue