Jump to content

can any one help me to make a custom group shader skin


Recommended Posts

for Example and Use triggerClientEvent;

  
function dxSkinTextureActive() 
shader = dxCreateShader("filenameis/bllabla.fx") 
image = dxCreateTexture("filenameis/texblabla.png") 
dxSetShaderValue(shader, "Tex0", image) 
engineApplyShaderToWorldTexture( shader, "textureName") 
end 
addEvent("onClientDxSkinCreate", true) 
addEventHandler("onClientDxSkinCreate", root, dxSkinTextureActive) 
  

Fx Code

texture Tex0; 
texture Tex1; 
  
//-- Very simple technique 
technique simple 
{ 
    pass P0 
    { 
        //-- Set up texture stage 0 
        Texture[0] = Tex0; 
        ColorOp[0] = SelectArg1; 
        ColorArg1[0] = Texture; 
        AlphaOp[0] = SelectArg1; 
        AlphaArg1[0] = Texture; 
  
        //-- Disable texture stage 1 
        ColorOp[1] = Disable; 
        AlphaOp[1] = Disable; 
    } 
} 

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...