mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	renderer_opengl: Fix flashlight problems in Luigi's Mansion (#6160)
This commit is contained in:
		
							parent
							
								
									b05b5b3bd8
								
							
						
					
					
						commit
						ea26f46b0d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1914,7 +1914,8 @@ void RasterizerOpenGL::SyncLightPosition(int light_index) { | |||
| 
 | ||||
| void RasterizerOpenGL::SyncLightSpotDirection(int light_index) { | ||||
|     const auto& light = Pica::g_state.regs.lighting.light[light_index]; | ||||
|     const auto spot_direction = Common::Vec3u{light.spot_x, light.spot_y, light.spot_z} / 2047.0f; | ||||
|     const auto spot_direction = | ||||
|         Common::Vec3f{light.spot_x / 2047.0f, light.spot_y / 2047.0f, light.spot_z / 2047.0f}; | ||||
| 
 | ||||
|     if (spot_direction != uniform_block_data.data.light_src[light_index].spot_direction) { | ||||
|         uniform_block_data.data.light_src[light_index].spot_direction = spot_direction; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue