Jump to content

Applying shaders over dark color objects?


Recommended Posts

Posted

Any way to make a shader come out the color you want when applying over a dark colored object?

Due to the darkness of the object, the shader is just staying black instead of changing to the color I'm trying to set it to.

Posted

Any one know good way of applying texture shader over a dark color, and still getting the color you're trying to produce instead of black, or very dark variant of that color.

Posted

so you have a variable float4 sLightColor. You can set all 4 color components (red - green - blue - alpha). Have in mind that unlike in MTA - the maximum value for the color is 1. For example: setShaderValue(myShader,"sLightCoor",1,0,0,1) - only red and alpha components are passed. Which will make the white texture appear red. setShaderValue(myShader,"sLightCoor",1,1,0,1) - will make it look yellow.

Posted
I've already figured out that, dividing it by 255 fixes that issue, just wondering if there is a way to make it actually change depending on the amount of light,.

If the texture is dark then you might want t replace it (use the shader i posted before)

Posted

Applying the shader over the texture is working just fine, I'm just wondering if there is any way to factor in the amount of light that the gta world is emitting example : when it's night the color is darker or what not.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...