国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Fix Box SDF after shear 3D

2022-03-09 12:07 作者:DeadCyber  | 我要投稿

A solution of SDF modeling shear issue.

Story:

e.g. if you are shearing by X in 3D:


Then you wanna do sheared SDF box like i.q. :

It's gonna broken (because when SDF Trace,the distance to box is not correctly calculated?):

By this pdf I found,although it doesn't give an answer,I was inspired.

"《Interactive Modeling with Distance Fields》 Tim-Christopher Reiner"

After I done my calculation,the fixed Sheared SDF Box code is here:

Now the box is fixed:

————————————————————————————————

Addition:

Later I found the code above neglected?negative shear and 0 situation.

Here is the code fixed:

Finally it's fixed...

__________________________________________________________

Thumb me if it helps.:)

I wrote this in English beacuse I didn't found a solution at google or shadertoy.I hope this may help someone someday.

Fix Box SDF after shear 3D的評論 (共 條)

分享到微博請遵守國家法律
吴川市| 东方市| 黔西县| 丰都县| 苍溪县| 永修县| 图们市| 晋州市| 城步| 邯郸市| 彭水| 邹平县| 内丘县| 澜沧| 镇宁| 青川县| 集贤县| 竹山县| 哈密市| 泰和县| 新宁县| 宁波市| 孟州市| 墨玉县| 永康市| 永城市| 金沙县| 松江区| 神农架林区| 四川省| 上蔡县| 维西| 固始县| 宁安市| 青川县| 铜陵市| 思南县| 新化县| 仪征市| 巍山| 周口市|