색상출력 |
void surf (Input IN, inout
SurfaceOutputStandard o){ } |
SurfaceOutputStandard 라는 구조체를 o.이라고 부르겠다. |
input구조체를 IN이란 이름으로 함수 안에 받아들이고, |
void surf (Input IN, inout
SurfaceOutputStandard o) |
빨간색을 출력 |
||
// Physically based Standard lighting model, and
enable shadows on all light types |
ambient는 컬러가 꺼진다. |
||
void surf (Input IN, inout
SurfaceOutputStandard o) |
노란색으로 출력 |
'Unity > Surface Shader' 카테고리의 다른 글
texture (0) | 2020.05.16 |
---|---|
CGPROGRAM03 (0) | 2020.05.16 |
CGPROGRAM01 (0) | 2020.05.16 |
Propeties (0) | 2020.05.16 |
기초 (0) | 2020.05.16 |