Skip to content

fix colorsign bumpmapping#30

Open
medievil1 wants to merge 15 commits intoPatrickvL:hslsl_tss_xbox_extsfrom
medievil1:clean-2233
Open

fix colorsign bumpmapping#30
medievil1 wants to merge 15 commits intoPatrickvL:hslsl_tss_xbox_extsfrom
medievil1:clean-2233

Conversation

@medievil1
Copy link

hopefully this is a good start, there are still PS issues that can cause some bump effects to not work correctly

PatrickvL and others added 6 commits July 8, 2022 11:48
…LORKEYOP, COLORKEYCOLOR (just like ALPHAKILL) in HLSL (both Fixed Function and regular template-based converted shaders).

For this, a conversion function was added for L6U5V5 texture format (again based on research medievil did : thanks!).
Also added tooling to the conversion functions, to make the code (somewhat) more readable and reduce the chance for errors.
…ource registration function (and only use GetDesc if the caller doesn't have access to those variables).

This results in seemingly correct values in g_HostTextureFormats[], but this hits the next hurdle : XboxColorSign isn't always set when it should be, resulting in unintentional signed_to_unsigned mapping for signed host formats like D3DFMT_L6V5U5 (if natively supported).

Another area that still needs improvement, is texture component swizzling (we can determine the requirements from kelvin_color_format_map).
hopefully this is a good start, there are still PS issues that can cause some bump effects to not work correctly
@@ -1 +1 @@
Subproject commit cf178f1fac38426990425cc034f7d4b8c9e1e388
Subproject commit c6a35c56016ea2ab2f19115d2ea1e85e0edae155
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be part of the pull request

PatrickvL and others added 5 commits July 18, 2022 10:21
…LORKEYOP, COLORKEYCOLOR (just like ALPHAKILL) in HLSL (both Fixed Function and regular template-based converted shaders).

For this, a conversion function was added for L6U5V5 texture format (again based on research medievil did : thanks!).
Also added tooling to the conversion functions, to make the code (somewhat) more readable and reduce the chance for errors.
…ource registration function (and only use GetDesc if the caller doesn't have access to those variables).

This results in seemingly correct values in g_HostTextureFormats[], but this hits the next hurdle : XboxColorSign isn't always set when it should be, resulting in unintentional signed_to_unsigned mapping for signed host formats like D3DFMT_L6V5U5 (if natively supported).

Another area that still needs improvement, is texture component swizzling (we can determine the requirements from kelvin_color_format_map).
@PatrickvL PatrickvL force-pushed the hslsl_tss_xbox_exts branch from e883b47 to 60b6e76 Compare July 18, 2022 08:22
…ess checks inter-INdependent, and apply a fix that helps the BumpMap samples (as discovered by medievil)
@PatrickvL PatrickvL force-pushed the hslsl_tss_xbox_exts branch from 60b6e76 to 47e007a Compare July 18, 2022 08:26
@PatrickvL PatrickvL force-pushed the hslsl_tss_xbox_exts branch 2 times, most recently from 2db06e2 to c8d4270 Compare October 14, 2022 16:09
@PatrickvL PatrickvL force-pushed the hslsl_tss_xbox_exts branch from eef50bb to 2a3cd72 Compare June 26, 2023 08:28
@PatrickvL PatrickvL force-pushed the hslsl_tss_xbox_exts branch from 2a3cd72 to cf4e2ca Compare June 26, 2024 07:00
@RadWolfie RadWolfie force-pushed the hslsl_tss_xbox_exts branch from cf4e2ca to 6351b7b Compare January 17, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants