Jump to content

Applying shaders over dark color objects?


Recommended Posts

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.

Link to comment
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)

Link to comment

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...