SurfaceOutput기본에 |
SubShader |
//#pragma surface surf Lambert noambient (Lambert를 test로 바꿔서 해봄. 커스텀을 만들기 위함인듯) |
라이트를 넣어서 구현 |
float4 LightingTest (SurfaceOutput s, float3 lightDir, float atten) |
float4 LightingTest (SurfaceOutput s, float3 lightDir, float atten) |
유니티 쉐이더 스타트업 자료(정종필저)
'Unity > Surface Shader' 카테고리의 다른 글
OUTLINE (0) | 2020.05.17 |
---|---|
프레넬 공식 (0) | 2020.05.17 |
라이팅구조 (0) | 2020.05.17 |
Vertex color (0) | 2020.05.17 |
texture (0) | 2020.05.16 |