You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---原始邮件---
发件人: ***@***.***>
发送时间: 2023年9月1日(周五) 下午2:27
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: [parallel101/opengltutor] 问题:计算具有biased的顶点法向量,代码中是不是需要关于顶点做个轮换 (Issue #46)
@archibate
现代码中,基于顶点a计算出具有biased的顶点法向量后,会依次赋值给a, b, c三个顶点:
https://github.com/parallel101/opengltutor/blob/817754a02e03f7b531e6be9366fec3ebb6f36a99/src/OBJ.cpp#L77-L79
是不是应该改成,基于顶点a, b, c进行轮换的计算,然后再依次赋值:
normals[face[0]] += compute_normal_biased(a, b, c); normals[face[1]] += compute_normal_biased(b, c, a); normals[face[2]] += compute_normal_biased(c, a, b);
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
@archibate
现代码中,基于顶点
a
计算出具有biased
的顶点法向量后,会依次赋值给a
,b
,c
三个顶点:opengltutor/src/OBJ.cpp
Lines 77 to 79 in 817754a
是不是应该改成,基于顶点
a
,b
,c
进行轮换的计算,然后再依次赋值:The text was updated successfully, but these errors were encountered: