Potato_Tomato420 Posted March 31, 2021 Share Posted March 31, 2021 (edited) 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 March 31, 2021 by Potato_Tomato420 Link to comment
Scripting Moderators ds1-e Posted April 6, 2021 Scripting Moderators Share Posted April 6, 2021 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 comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now