简体   繁体   中英

Wrong color on Unity Shader Graph

I have car mesh for my game. I need change base car color without wheel and headlights color. For this I create texture with white and black places where need changes and color mask for it. Then I created shader with Shader Graph在此处输入图像描述

But the color I got is wrong. It's brighter. The Color what I want and what I have: 在此处输入图像描述

What I'm doing wrong?

Unless you're using negative inputs, Add won't reduce the amount of blue, red, or green. Since you're adding red light into grey, you'll get pink as a result. Instead, you should use Multiply.

Multiply the base texture with a white-based color map, where the color map is white where it shouldn't affect the base texture. To make the white-based color map, you can invert the result of the color mask and add it to the result of the multiply you already have.

示例图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM