説明
物理ベースのマテリアルの、金属の反射率 (Metal Reflectance) の値を返します。使用するマテリアルは ノード の Material ドロップダウンパラメーターで選択できます。
PBR Master ノード で "Specular" Workflow を使用している場合は、この値を Specular ポート に供給します。"Metallic" Workflow を使用している場合は、この値を Albedo ポート に供給します。
ポート
Name |
Direction |
タイプ |
バインディング |
説明 |
Out |
出力 |
Vector 3 |
なし |
出力値 |
制御
Name |
タイプ |
オプション |
説明 |
Material |
ドロップダウン |
Iron, Silver、Aluminium、Gold、Copper、Chromium、Nickel、Titanium、Cobalt, Platform |
出力するマテリアルの値を選択します。 |
生成されるコードの例
以下のサンプルコードは、このノードの出力の一例を示したものです。
Iron
float3 _MetalReflectance_Out = float3(0.560, 0.570, 0.580);
Silver
float3 _MetalReflectance_Out = float3(0.972, 0.960, 0.915);
Aluminium
float3 _MetalReflectance_Out = float3(0.913, 0.921, 0.925);
Gold
float3 _MetalReflectance_Out = float3(1.000, 0.766, 0.336);
Copper
float3 _MetalReflectance_Out = float3(0.955, 0.637, 0.538);
Chromium
float3 _MetalReflectance_Out = float3(0.550, 0.556, 0.554);
Nickel
float3 _MetalReflectance_Out = float3(0.660, 0.609, 0.526);
Titanium
float3 _MetalReflectance_Out = float3(0.542, 0.497, 0.449);
Cobalt
float3 _MetalReflectance_Out = float3(0.662, 0.655, 0.634);
Platinum
float3 _MetalReflectance_Out = float3(0.672, 0.637, 0.585);
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.