Jump to content

engineRemoveShader.. is not removing the shaders


Hiding

Recommended Posts

Hi, I want to remove every smoke from the car, engine smoke, explodion smoke, etc. 
My question is why just not removing the smoke? 

texShader = dxCreateShader ( "texreplace.fx" )

function removeSmoke()
	engineRemoveShaderFromWorldTexture(texShader,"collisionsmoke")
	engineRemoveShaderFromWorldTexture(texShader,"smoke")
	engineRemoveShaderFromWorldTexture(texShader,"smoke5")
	engineRemoveShaderFromWorldTexture(texShader,"smoke4")
	engineRemoveShaderFromWorldTexture(texShader,"smokeII_3")
	engineRemoveShaderFromWorldTexture(texShader,"fireball6")
end
addEventHandler("onClientResourceStart", root, removeSmoke)

 

Link to comment

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...