wmrs_cover_1.jpg

wmrs_cover_2.jpg

wmrs_cover_3.jpg

wmrs_cover_4.jpg

Writing mental ray shaders
            A perceptual introduction

This website provides additional resources for the book Writing mental ray shaders: A perceptual introduction. It includes all the shader source code and scene files described in the book, available for you to download. These pages will also help you understand where and how the shaders are used in the example scenes throughout the book. In the page for a shader, the scenes that use it are linked; conversely, in the page for a scene, the shaders used by that scene are linked. The book’s bibliography is also duplicated here, but with the addition of links to the original papers and books that it references. I am also adding material beyond what is covered in the book to this site, including teaching materials as well as additional shaders that extend ideas presented in the book or based on new shader ideas suggested by readers. The book includes a CDROM that contains a fully functional version of mental ray, rendering images that are not watermarked or limited in resolution. You can make comments and suggestions about the book on the forum which I’ll use to correct and improve the book by making additions to this website.
Andy Kopra
mental images

Background

Getting started

The book’s CDROM

Downloading examples from the book

Shaders

Shader compilation on various platforms

Shader source files

Additional shaders

A few notes on programming style

Scenes

Accessing custom shaders during rendering

Scene files

Reference

Teaching materials

Bibliography