Ray Tracing: the Next Week by Peter Shirley
Author:Peter Shirley [Shirley, Peter]
Language: eng
Format: epub, mobi
Published: 2016-03-05T23:00:00+00:00
Now we can make textured materials by replacing the vec3 color with a texture pointer:
where you used to have
new lambertian(vec3(0.5, 0.5, 0.5)))
now you should replace the vec3(...) with new constant_texture(vec3(...))
new lambertian(new constant_texture(vec3(0.5, 0.5, 0.5))))
We can create a checker texture by noting that the sign of sine and cosine just alternates in a regular way and if we multiply trig functions in all three dimensions, the sign of that product forms a 3D checker pattern.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7783)
Autodesk Civil 3D 2024 from Start to Finish by Stephen Walz Tony Sabat(6535)
Mathematics for Game Programming and Computer Graphics by Penny de Byl(6414)
Taking Blender to the Next Level by Ruan Lotter(6195)
Express Your Creativity with Adobe Express by Rosie Sue(6018)
Hands-On Unity 2022 Game Development - Third Edition by Nicolas Alejandro Borromeo(5632)
Hands-On Unity 2022 Game Development by Nicolas Alejandro Borromeo(4753)
Adobe Illustrator for Creative Professionals by Clint Balsar(3678)
Unreal Engine 5 Character Creation, Animation, and Cinematics by Henk Venter & Wilhelm Ogterop(3622)
Going the Distance with Babylon.js by Josh Elster(3588)
Mastering Graphics Programming with Vulkan by Marco Castorina & Gabriel Sassone(3492)
Squeaky Clean Topology in Blender by Michael Steppig(3427)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2914)
Unreal Engine 5 Character Creation, Animation, and Cinematics by Henk Venter
 Wilhelm Ogterop(2874)
Rapid Viz: A New Method for the Rapid Visualization of Ideas by Kurt Hanks & Larry Belliston(2701)
The 46 Rules of Genius: An Innovator's Guide to Creativity (Voices That Matter) by Marty Neumeier(2657)
Learn Qt 5: Build modern, responsive cross-platform desktop applications with Qt, C++, and QML by Nicholas Sherriff(2365)
Fusion 360 for Makers by Lydia Sloan Cline(2220)
Hands-On Neural Networks with Keras by Niloy Purkait(2168)
