Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Paint metallic

$
0
0

Hi. I want make metallic shader for cars. I use DirectX 9.0 and shader model 3.0.
I want understood what characterizes the material as "metal". 

I use cubemap reflection and as to mix colors?

```
float3 ReflectionVector = reflect(CameraDirection, PS.Normal);
float4 Reflection = texCUBElod(gReflectionSampler, float4(-ReflectionVector, 2.5));
Reflection.rgb *= Reflection.rgb * Reflection.rgb * gVehicleColor;
```


I tried to multiply the reflection by itself three times and then multiply by the color of the car. The reflection becomes very blue (when black is used on car) and looks very unrealistic, white looks dirty, has nothing to do with …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>