Jump to content
  • 0

Question of shaders.


FranklinRoosevelt

Question

7 answers to this question

Recommended Posts

  • 0
Hello guys, whether it is possible some way copy the shader with a texture and apply it to another?

How to do it? Namely, how do you know the name of the texture clothes?

The clothes are only for CJ. Every model has (usually) 1 texture. There is a function to get texture names for a model by id. And this you'll use to replace the original ped texture with your own.

// 
// texRep.fx 
// 
// 
  
//------------------------------------------------------------------------------------------ 
// Shader Settings 
//------------------------------------------------------------------------------------------ 
texture gTexture; 
  
//------------------------------------------------------------------------------------------ 
// Techniques 
//------------------------------------------------------------------------------------------ 
technique TexReplace 
{ 
    pass P0 
    { 
        Texture[0] = gTexture; 
    } 
} 

Link to comment
  • 0
Ren_712, thanks, but in screenshots replaced other skins, how do it?

1. Get an original texture

2. Get texture name

3. Modify the texture to fit your expectations

4. apply shader to world texture per entity and dxSetShaderValue or something

5. ????

6. PROFIT!

i don't know how to help. This video might do:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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