Rat32 Posted September 24, 2017 Posted September 24, 2017 Hello! I have shader (Gauss Blur), and I must draw it only on part of my image. For example:https://i.imgur.com/80mrBFa.png In MTA I must blur white section, but black section of image leave alone. It is possible?
Moderators IIYAMA Posted September 24, 2017 Moderators Posted September 24, 2017 (edited) Yes it is possible. I just don't know how to do it with the shader file. But you can do it with lua: First draw the image: https://wiki.multitheftauto.com/wiki/DxDrawImage And then draw a section of the same image on top of it: https://wiki.multitheftauto.com/wiki/DxDrawImageSection Edited September 24, 2017 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
Ren_712 Posted September 26, 2017 Posted September 26, 2017 https://community.multitheftauto.com/index.php?p=resources&s=details&id=10163 1 I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
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