~DarkRacer~ Posted March 20, 2014 Share Posted March 20, 2014 (edited) as the title says, how can i replace textures using shaders? i've got some model names from engineGetModelNameFromID and i want to replace them with pictures that i have. (Models such as radar, crosshair, etc..) i have this code which i don't know what it does... : texture Tex0; technique simple { pass P0 { Texture[0] = Tex0; ColorOp[0] = SelectArg1; ColorArg1[0] = Texture; AlphaOp[0] = SelectArg1; AlphaArg1[0] = Texture; ColorOp[1] = Disable; AlphaOp[1] = Disable; } } Edited March 20, 2014 by Guest Link to comment
manawydan Posted March 20, 2014 Share Posted March 20, 2014 wiki: https://wiki.multitheftauto.com/wiki/En ... rldTexture Link to comment
3B00DG4MER Posted March 20, 2014 Share Posted March 20, 2014 as the title says, how can i replace textures using shaders? i've got some model names from engineGetModelNameFromID and i want to replace them with pictures that i have.(Models such as radar, crosshair, etc..) i have this code which i don't know what it does... : texture Tex0; technique simple { pass P0 { Texture[0] = Tex0; ColorOp[0] = SelectArg1; ColorArg1[0] = Texture; AlphaOp[0] = SelectArg1; AlphaArg1[0] = Texture; ColorOp[1] = Disable; AlphaOp[1] = Disable; } } Do you mean this ? But it moving,You can change the images and the model Link to comment
~DarkRacer~ Posted March 20, 2014 Author Share Posted March 20, 2014 wiki:https://wiki.multitheftauto.com/wiki/En ... rldTexture I love you as the title says, how can i replace textures using shaders? i've got some model names from engineGetModelNameFromID and i want to replace them with pictures that i have.(Models such as radar, crosshair, etc..) i have this code which i don't know what it does... : texture Tex0; technique simple { pass P0 { Texture[0] = Tex0; ColorOp[0] = SelectArg1; ColorArg1[0] = Texture; AlphaOp[0] = SelectArg1; AlphaArg1[0] = Texture; ColorOp[1] = Disable; AlphaOp[1] = Disable; } } Do you mean this ? But it moving,You can change the images and the model Not really 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