Jump to content

Ropa personalizada


Arsilex

Recommended Posts

tiene que ser con shaders pero llevo como 2 horas intentando con shaders y no se cambia...

PD: aver si alguien sabe cual es el error...

pShader = dxCreateShader( 'clothestex.fx' ) 
if( pShader ) then 
    local pTexture = dxCreateTexture( 'bandgang3.png' ) 
    if( pTexture ) then 
        dxSetShaderValue( pShader, 'gTexture', pTexture ) 
        engineApplyShaderToWorldTexture( pShader, 'cj_ped_glasses' ) 
    end 
end 

// Variable to fetch the texture from the script 
texture gTexture; 
  
// My nice technique. Requires absolutely no tools, worries nor skills 
technique TexReplace 
{ 
    pass P0 
    { 
        // Set the texture 
        Texture[0] = gTexture; 
         
        // LET THE MAGIC DO ITS MAGIC! 
    } 
} 
  

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...