abdalaziz Posted March 26, 2019 Share Posted March 26, 2019 i want to change the vehicles's glass color , i searched in wiki ,But I did not find the way or the functions , what the functions that i need it? Link to comment
Moderators Patrick Posted March 26, 2019 Moderators Share Posted March 26, 2019 (edited) dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture Edited March 26, 2019 by stPatrick 1 Link to comment
abdalaziz Posted March 26, 2019 Author Share Posted March 26, 2019 9 hours ago, stPatrick said: dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture Thanks. but can you tell me the way to code it ? on dxCreateShader , how can i get the filepath ? i want to put a number in edit box and just set the color for the glass , how it ? Link to comment
Moderators Patrick Posted March 26, 2019 Moderators Share Posted March 26, 2019 4 minutes ago, abdalaziz said: Thanks. but can you tell me the way to code it ? on dxCreateShader , how can i get the filepath ? i want to put a number in edit box and just set the color for the glass , how it ? Temporary download link: http://skycore.hu/glasscolor.rar Something like that, but this is not the right solution because it also tones other parts of the car. 1 Link to comment
abdalaziz Posted March 26, 2019 Author Share Posted March 26, 2019 9 hours ago, stPatrick said: Temporary download link: http://skycore.hu/glasscolor.rar Something like that, but this is not the right solution because it also tones other parts of the car. Thaaaaaaanks! 9 hours ago, stPatrick said: Temporary download link: http://skycore.hu/glasscolor.rar Something like that, but this is not the right solution because it also tones other parts of the car. i want to remove it or choose another color when i click on a button , i know all the codes but i don't know how to remove the shader .. how can i remove the shader to make a new one ? Link to comment
Moderators Patrick Posted March 26, 2019 Moderators Share Posted March 26, 2019 45 minutes ago, abdalaziz said: Thaaaaaaanks! i want to remove it or choose another color when i click on a button , i know all the codes but i don't know how to remove the shader .. how can i remove the shader to make a new one ? engineRemoveShaderFromWorldTexture 1 Link to comment
Overkillz Posted March 26, 2019 Share Posted March 26, 2019 Instead removing the shader, you could use dxSetShaderValue. 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