Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What makes TextureOverride not working in some games? #105

Closed
Romangelo opened this issue Mar 23, 2019 · 1 comment
Closed

What makes TextureOverride not working in some games? #105

Romangelo opened this issue Mar 23, 2019 · 1 comment

Comments

@Romangelo
Copy link

It works for most games, but in some games it doesn't. I can make textures disappeared in Hunting Mode, but when I make it into an INI mod file with handling = skip, it doesn't work.

@DarkStarSword
Copy link
Collaborator

DarkStarSword commented Mar 24, 2019

TextureOverrides command lists have to be enabled via the checktextureoverride command from somewhere that is already active (typically a ShaderOverride or ShaderRegex), e.g. to enable all TextureOverrides on Vertex Buffer Slot 0, Index Buffer and Pixel Shader Texture Slot 0 you can do:

[ShaderRegexEnableTextureOverrides]
shader_model = vs_4_0 vs_4_1 vs_5_0 vs_5_1
; Doing texture matches first in case your mesh matches replace the draw call:
checktextureoverride = ps-t0
checktextureoverride = vb0
checktextureoverride = ib

For performance reasons it is better to constrain that to only activate when relevant shaders are in use, whether that is by matching the shader hashes in a ShaderOverride section, or adding a pattern to the above regex.

This is covered at this point in the costume modding tutorial:
https://www.youtube.com/watch?v=zWE0xP4MgR8&t=580s

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

No branches or pull requests

2 participants