Hani2001 Posted June 1, 2018 Share Posted June 1, 2018 (edited) Please help me If i past image colored will be change all colors to black i need to still colored not black client: local texturesimg = { { "img/radardisc.png", "radardisc" } } addEventHandler("onClientResourceStart", resourceRoot, function() for i = 1, #texturesimg do local shader = dxCreateShader("shader/shader.fx") engineApplyShaderToWorldTexture(shader, texturesimg[i][2]) dxSetShaderValue(shader, "gTexture", dxCreateTexture(texturesimg[i][1])) end end) shader.fx: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } Edited June 1, 2018 by Hani2001 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