BlueSkyDefender / Depth3D

Depth Based 3D & Other post-process shaders
541 stars 64 forks source link

Failed to compile - OMSI 2 #101

Closed Filipi-7 closed 12 months ago

Filipi-7 commented 12 months ago

Hi. I installed Reshade 5.9.2 and downloaded this shader for the game OMSI 2.

Upon launching I get a the following errors and can't enable the shader:

19:22:20:889 [14816] | ERROR | Failed to compile "D:\Games\OMSI 2\reshade-shaders\Shaders\Depth3D\SuperDepth3D_VR+.fx":
D:\Games\OMSI 2\Shader@0x2B194860(2882,2): warning X4121: gradient-based operations must be moved out of flow control to prevent divergence. Performance may improve by using a non-gradient operation
D:\Games\OMSI 2\Shader@0x2B194860(3078,14): error X5631: z or w components of vPos register are not available in this shader version, and cannot be dcl'd.

19:22:22:076 [14428] | ERROR | Failed to compile "D:\Games\OMSI 2\reshade-shaders\Shaders\Depth3D\SuperDepth3D.fx":
D:\Games\OMSI 2\Shader@0x2542D760(3556,15): error X5631: z or w components of vPos register are not available in this shader version, and cannot be dcl'd.

I'm on Windows 10 with an RTX 3080.

BlueSkyDefender commented 12 months ago

100

Fixed issue in DX9 https://github.com/BlueSkyDefender/Depth3D/commit/cc5e666653c46da98d0702fd97ea82835cf85b5f

Filipi-7 commented 12 months ago

It works now, thank you.