说明:
带有法线贴图,带有metallic based PBR map。基于物理渲染,可完善的使用mixedlighting。
包含三张贴图
Albedo:
Materialmap:
- R=预留
- G=roughness
- B=预留
- A=metallic
NormalMap:
代码块:
物理材质:
Shader "WH40K/Static/Static_Metal_200" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.7
_MaterialMap ("Material", 2D) = "white" {}
_BumpMap ("NormalMap", 2D) ="bump"{}
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf Standard fullforwardshadows
#pragma target 3.0
sampler2D _MainTex;
sampler2D _MaterialMap;
sampler2D _BumpMap;
struct Input {
float2 uv_MainTex;
float2 uv_MaterialMap;
float2