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模型的情況下,僅僅用一個像素着色器就能創造出如此神奇的東西呢?難道他們用了魔法嗎?還是他們個個都是數學或者圖形學設計的博士?博文已經搬遷到新的地址