2kristof2 Posted May 15, 2016 Posted May 15, 2016 Hello, I created this thread because I'd love to know how to put a text to an object. It can be for example clock or something like that https://forum.multitheftauto.com/viewtopic.php?f=108&t=68962. I know that I have to use a shader for that. I'm not sure but I think I should use this very simple one: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } I've read some about functions I probably need: dxSetRenderTarget, dxSetShaderValue, engineApplyShaderToWorldTexture etc and I've even made a texture with a text but I have no idea how to make it changing (onClientRender I guess). Any help is appreciated
2kristof2 Posted May 16, 2016 Author Posted May 16, 2016 Please guys, I need a simple example which shows how it works, something what changes its value for intance countdown - the script displayes numbers 3..2..1.. every second.
2kristof2 Posted May 17, 2016 Author Posted May 17, 2016 Thx for the reply. It's not really what i was looking for. I want to make it by using a shader because it allows me drawing dx images rectangles etc as well
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