Skip to content

Commit

Permalink
fix: disable some effect shaders (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum authored Nov 20, 2024
1 parent 39992a3 commit 302de45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool Hooks::BSShader_BeginTechnique::thunk(RE::BSShader* shader, uint32_t vertex

bool shaderFound = func(shader, vertexDescriptor, pixelDescriptor, skipPixelShader);

if (!shaderFound) {
if (!shaderFound && shader->shaderType.get() != RE::BSShader::Type::Effect) {
auto& shaderCache = SIE::ShaderCache::Instance();
RE::BSGraphics::VertexShader* vertexShader = shaderCache.GetVertexShader(*shader, state->modifiedVertexDescriptor);
RE::BSGraphics::PixelShader* pixelShader = shaderCache.GetPixelShader(*shader, state->modifiedPixelDescriptor);
Expand Down

0 comments on commit 302de45

Please sign in to comment.