Ceeser Posted August 16, 2020 Share Posted August 16, 2020 (edited) Hey, renderTargets are squares and I want to display a circle by cutting out a part of the renderTarget. I've been trying the HUD Mask Shader, but that gives a weirdly distorted output image for some reason. Somebody told me that it is possible to "cut out" a circle from an input image using dxSetBlendMode and dxDrawCircle. I've been trying out a bit but it seems like I can't find a solution.. is it even possible to "cut images" using dxSetBlendMode and dxDrawCircle? Or even, like how does "overwrite" behaves? If I use dxDrawCircle(X, Y, r, 0, 360, tocolor(0, 0, 0, 0) I still see it as a black circle with 255 alpha - why? Edited August 16, 2020 by Ceeser Link to comment
Moderators Patrick Posted August 16, 2020 Moderators Share Posted August 16, 2020 (edited) Possible with masking, here is an example: https://wiki.multitheftauto.com/wiki/Shader_examples#Hud_mask Edited August 16, 2020 by Patrick 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