摘要:
assignment7中,使用了如上公式在三角形中采样,看着一头雾水,经过搜集资料,最终发现这是一个严谨的三角形随机均匀采样算法 选自 https://math.stackexchange.com/questions/18686/uniform-random-point-in-triangle-in 阅读全文
摘要:
#define ROUND_UP(x, align) (((int)(x) + (align - 1)) & ~(align - 1)) #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define BLOCK_SZ 8 void transpose_sub 阅读全文