megaman54 Posted July 30, 2019 Share Posted July 30, 2019 I would like to try and make a shader/script that applies baked lighting to models and to do so I need to access UV Channel 2 of the custom models. Does GTA even support models with a second UV channel and if so, how can I access the channel in the shader code? Link to comment
Administrators Tut Posted July 30, 2019 Administrators Share Posted July 30, 2019 15 minutes ago, megaman54 said: I would like to try and make a shader/script that applies baked lighting to models and to do so I need to access UV Channel 2 of the custom models. Does GTA even support models with a second UV channel and if so, how can I access the channel in the shader code? To answer your question about 2nd UV channel support; yes. GTA SA uses 1st channel for its diffuse map, while the 2nd channel is used for its reflection or chrome map. This map is used as a fake environment map that scrolls horizontally through the vehicle surface as it moves. I have no idea what it takes to script this. Link to comment
megaman54 Posted July 30, 2019 Author Share Posted July 30, 2019 32 minutes ago, Tut said: To answer your question about 2nd UV channel support; yes. GTA SA uses 1st channel for its diffuse map, while the 2nd channel is used for its reflection or chrome map. This map is used as a fake environment map that scrolls horizontally through the vehicle surface as it moves. I have no idea what it takes to script this. Thank you! I guess I have to do some tests with shaders until someone responds. 1 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