FranklinRoosevelt Posted January 14, 2015 Share Posted January 14, 2015 Hello guys, I tried to make a shader to standard texture become transparent here it is: I searching for something in Shader_examples This is code give me Kernell: struct PSInput { float4 Diffuse : COLOR0; }; float4 PixelShaderFunction( PSInput PS ) : COLOR0 { float4 color = PS.Diffuse; color.a = 0.5; return color; } technique { pass p0 { PixelShader = compile ps_2_0 PixelShaderFunction(); } } but turned: but still some simple texture become transparent such as the leaves of trees and some vegetation and shadow peds: Help make it, sorry for my bad English. Link to comment
WASSIm. Posted January 14, 2015 Share Posted January 14, 2015 look at resources\[gameplay]\visualiser Link to comment
FranklinRoosevelt Posted January 14, 2015 Author Share Posted January 14, 2015 Thank you so much man, the decision was so close. Link to comment
Jedaje Posted January 31, 2020 Share Posted January 31, 2020 On 14/01/2015 at 15:32, FranklinRoosevelt said: Hello guys, I tried to make a shader to standard texture become transparent Reveal hidden contents here it is: I searching for something in Shader_examples This is code give me Kernell: but turned: Reveal hidden contents but still some simple texture become transparent such as the leaves of trees and some vegetation and shadow peds: Hide contents Help make it, sorry for my bad English. Wow, do you have this texture to give me? Does it work on mta servers? 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