1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

rsx: Reset fog mode/param to linear/1.;

Fix After Burner Climax fog
This commit is contained in:
Vincent Lejeune 2016-03-04 17:53:50 +01:00
parent d74e031d4e
commit 52e2800fb5

View File

@ -768,7 +768,10 @@ namespace rsx
method_registers[NV4097_SET_LINE_WIDTH] = 1 << 3; method_registers[NV4097_SET_LINE_WIDTH] = 1 << 3;
method_registers[NV4097_SET_FOG_MODE] = 0x0800; // rsx::fog_mode::exponential; // These defaults were found using After Burner Climax (which never set fog mode despite using fog input)
method_registers[NV4097_SET_FOG_MODE] = 0x2601; // rsx::fog_mode::linear;
(f32&)method_registers[NV4097_SET_FOG_PARAMS] = 1.;
(f32&)method_registers[NV4097_SET_FOG_PARAMS + 1] = 1.;
method_registers[NV4097_SET_DEPTH_FUNC] = CELL_GCM_LESS; method_registers[NV4097_SET_DEPTH_FUNC] = CELL_GCM_LESS;
method_registers[NV4097_SET_DEPTH_MASK] = CELL_GCM_TRUE; method_registers[NV4097_SET_DEPTH_MASK] = CELL_GCM_TRUE;