Overkillz Posted January 31, 2016 Share Posted January 31, 2016 Hey dear community, I have read engineRemoveShaderFromWorldTexture function to create a script that should be easy to do. How ever, it only remove the shader that was already defined by dxCreateShader Well, as might you know, many mappers implements water shaders to their maps (Race) but sometimes it is annoying. Well, my point is delete all water shader by a command how ever, when I want to use that function, I have to set as requiered argument a shader which was already defined. There is a way to get the water shader from the map and remove it ? Thanks. Link to comment
vx89 Posted February 1, 2016 Share Posted February 1, 2016 Maybe you could try local mapResourceDynamicRoot = getResourceDynamicElementRoot(mapResource) local shaders= getElementsByType( 'shader', mapResourceDynamicRoot) Just an idea. Link to comment
Overkillz Posted February 1, 2016 Author Share Posted February 1, 2016 but 'shade' could affect to everything from the map (I mean shaders which the mappers add to the tables, trees ...etc ) right ? Link to comment
vx89 Posted February 1, 2016 Share Posted February 1, 2016 It should find all shader elements created by the map resource script. My example is a starting point for you to experiment with. 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