Shadertoy 教程 Part 6 使用光线步进算法创建3D场景

Note: This series blog was translated from Nathan Vaughn's Shaders Language Tutorial and has been authorized by the author. If reprinted or reposted, please be sure to mark the original link and description in the key position of the article after obtaining the author’s consent as well as the translator's. If the article is helpful to you, click this Donation link to buy the author a cup of coffee.
说明:该系列博文翻译自Nathan Vaughn着色器语言教程。文章已经获得作者翻译授权,如有转载请务必在取得作者译者同意之后在文章的重点位置标明原文链接以及说明。如果你觉得文章对你有帮助,点击此打赏链接请作者喝一杯咖啡。

朋友们,你们好!终于到了我们期待已久的时刻啦!在本篇教程中,你将首次学习到如何使用光线步进(Ray marching)创建3D场景!

什么是光线?

你有没有浏览过Shadertoy上那些让人惊叹不已的作品?你一定会感到好奇,它们是如何在不使用3D模型的情况下,仅仅用一个像素着色器就能创造出如此神奇的东西呢?难道他们用了魔法吗?还是他们个个都是数学或者图形学设计的博士?博文已经搬迁到新的地址

原文地址:https://www.cnblogs.com/constantince/p/15508657.html