Gallardo9944 Posted March 16, 2015 Share Posted March 16, 2015 Hello. I'm a complete idiot in terms of making shaders, so i'll ask here. I've got this shader: texture TXT; technique tech { pass p0 { Texture[0] = TXT; } } And i put a texture inside the shader this way: dxSetShaderValue(shader,"TXT",myTextureOrTarget) So my question is: how can apply colour tinting to myTextureOrTarget in the shader? I'd like it to work this way: dxSetShaderValue(shader,"r",255) dxSetShaderValue(shader,"g",0) dxSetShaderValue(shader,"b",255) And when i draw the shader, the myTextureOrTarget becomes pink (as in this example), the same way as if i drew it with tocolor(255,0,255,255) argument outside of the shader Any suggestion is appreciated. Thanks Link to comment
HunT Posted March 17, 2015 Share Posted March 17, 2015 Check the FX on this resource : https://community.multitheftauto.com/in ... ls&id=3119 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