Blinn Phong Model

김재균·2022년 6월 29일
0

OPENGL

목록 보기
2/3
post-thumbnail

Blinn Phong Model

  • blinn-Phong model은 Phong model을 개선한 모델
  • Blinn-phong은 기존의 Phong모델에서 Specular reflection이 개선됨

기존 Specular 식은

KsIs(R^V^)nK_sI_s(\hat{R}\cdot\hat{V})^n

R^=L^2.0(N^L^)N^\hat{R} = \hat{L} - 2.0 * (\hat{N}\cdot\hat{L})\hat{N}

위와 같이 반사 벡터를 구하기 위해서 매번 dot연산을 해야한다.

Blinn phong 의 경우 R^\hat{R}을 사용하는 대신 중간 백터 H^\hat{H}를 사용한다.

H^=L^+V^/L^+V^\hat{H}= \hat{L}+\hat{V} / ||\hat{L}+\hat{V}||

Blinn phong의 중간 벡터 H^\hat{H}은 phong 반사 벡터 R^\hat{R}보다 가볍게 구할수있다.

Blinn phong의 Specular 식은

KsIs(N^H^)nK_sI_s(\hat{N}\cdot\hat{H})^n

profile
코딩은 내가 생각하는 모든것을 가능하게 해준다

0개의 댓글