본문 바로가기
Shader

GGX Specualr

by 대마왕J 2014. 9. 15.

http://www.gamedev.net/topic/642501-metal-shader-correct/

 

 

eqn3a.png

 

 

float NdotH_2 = NdotH * NdotH;

float a_2 = a * a;

float D = a_2 / pow(NdotH_2 * (a_2 - 1.0) + 1.0, 2.0);
 
 
http://www.filmicworlds.com/2014/04/21/optimizing-ggx-shaders-with-dotlh/
반응형

댓글