Decro Posted March 12, 2017 Share Posted March 12, 2017 Is there a way to set some texture alpha by the shader? For example: i have a vehicle model, and i want to make some texture on it invisible. Link to comment
NeXuS™ Posted March 13, 2017 Share Posted March 13, 2017 Did you try setting a components alpha? (getVehicleComponents() and then use maybe a for cycle or just access its data by just calling it. It returns an array of the actual vehicle's components) Link to comment
Decro Posted March 15, 2017 Author Share Posted March 15, 2017 On 13.03.2017 at 10:07, Patrik91 said: Did you try setting a components alpha? (getVehicleComponents() and then use maybe a for cycle or just access its data by just calling it. It returns an array of the actual vehicle's components) Nope. This function returns just an array with NAMES of vehicle components, not the certain elements. And the question is how to set texture alpha, not a component. Link to comment
MIKI785 Posted March 15, 2017 Share Posted March 15, 2017 I'm sure there is a way but wouldn't it be easier to just replace the texture with an empty texture? Like 1x1 transparent .png file? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now