Spc Posted July 2, 2018 Posted July 2, 2018 Hey, I want to change green elements from the world (grass, trees). I want to change them so that the world looks deserted (maybe just simply darken them). Is there any way to do that? For example shader or just changing textures.
Moderators IIYAMA Posted July 2, 2018 Moderators Posted July 2, 2018 (edited) 1. With a simple shader: https://wiki.multitheftauto.com/wiki/Element/Shader#Simple 2. Create shader: https://wiki.multitheftauto.com/wiki/DxCreateShader 3. Find texture names you want to replace: https://wiki.multitheftauto.com/wiki/Shader_examples#Texture_names 4. Create a texture of desert image: https://wiki.multitheftauto.com/wiki/DxCreateTexture 5. Set the texture to the shader with dxSetShaderValue https://wiki.multitheftauto.com/wiki/DxSetShaderValue 6.Apply shader to world: https://wiki.multitheftauto.com/wiki/EngineApplyShaderToWorldTexture Edited July 2, 2018 by IIYAMA 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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