FranklinRoosevelt Posted January 14, 2015 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.
FranklinRoosevelt Posted January 14, 2015 Author Posted January 14, 2015 Thank you so much man, the decision was so close.
Jedaje Posted January 31, 2020 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?
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