월간 보관물: 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 … 계속 읽기

카테고리: Uncategorized | 태그: , , , | 댓글 남기기