-
최신 글
최신 댓글
강정원 (eclipse로 scala개발 환경 준비) 글 목록
카테고리
그 밖의 기능
월간 보관물: 2013 2월
Ambient Cube lighting
Ambient Cube를 사용해서 Ambient 라이팅 계산: float3 ambientCubeLighting( float3 ambientColors[6], float3 N ) { // N = normal vector (unit) float3 nSquared = N * N; int3 isNegative = (N < 0); float3 ambientColor = nSquared.x * AmbientColors[isNegative.x] + nSquared.y … 계속 읽기