Hey guys! I want to replace CJ's face. But the textures rotation is off. How can I align properly?
Code:
local shader2 = dxCreateShader( "shaders/shader.fx", 0, 0, false, "ped" )
local face = dxCreateTexture ( "files/faces/1.jpg" )--path of face.png
engineApplyShaderToWorldTexture ( shader2, "cj_ped_head", localPlayer, true )--body part of cj(head)
dxSetShaderValue ( shader2, "gTexture", face )
Shader.fx:
texture gTexture;
technique replace
{
pass P0
{
Texture[0] = gTexture;
}
}
Texture: