Jump to content

Shader for element


Sylvek

Recommended Posts

Hi!

I have little problem with texture shad_car. I'd like to apply shader on it but I'd like to get shader only on predefined elements. F.e. apply shader only on one vehiclea.

bool engineApplyShaderToWorldTexture ( element shader, string textureName [, element targetElement = nil, bool appendLayers = true ] )

 

As you  can see. Third argument is targetElement. On applying some "vehicle" shader is really easy (vehiclegrunge256, vehiclegeneric, etc.) but problem with applying shader on shad_car is that targetElement can't be a vehicle - it's just not working. Can I make this in another way or it's impossible to apply this shader with targetElement?

 

 

 

 

 

a

 

 

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