Jump to content

How to disable multiple shaders


Recommended Posts

How can i disable the shaders?
The code below doesn't same to work
Very new to this stuff

function triggerWorldEffects(state)
    for i = 1, #texturesimg do
        if not (shader) then 
            local shader = dxCreateShader("worldEffects/shader/shader.fx")
            engineApplyShaderToWorldTexture(shader, texturesimg[i][2])
            dxSetShaderValue(shader, "gTexture", dxCreateTexture(texturesimg[i][1]))
      elseif (shader) then
          engineRemoveShaderFromWorldTexture (shader, texturesimg[i][2])
        end
    end
end

 

Edited by Potato_Tomato420
Link to post
  • Scripting Moderators
On 31/03/2021 at 03:39, Potato_Tomato420 said:

How can i disable the shaders?

What do you mean by shaders? Perhaps multiple textures applied by replacement shader?

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...