In this recipe we will adjust the contrast of the image by interpolating the color towards or away from gray, and adjusting the brightness by adding or removing the black color from the image. By moving the colors closer to gray (0.5, 0.5, 0.5), we are reducing the contrast, and by moving away in the positive direction we are increasing the contrast. Reducing the contrast by 100 percent will result in a totally gray image, while reducing by 200 percent, generates a negative image.
Direct3D Rendering Cookbook
Direct3D Rendering Cookbook
Overview of this book
Table of Contents (19 chapters)
Direct3D Rendering Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started with Direct3D
Rendering with Direct3D
Rendering Meshes
Animating Meshes with Vertex Skinning
Applying Hardware Tessellation
Adding Surface Detail with Normal and Displacement Mapping
Performing Image Processing Techniques
Incorporating Physics and Simulations
Rendering on Multiple Threads and Deferred Contexts
Implementing Deferred Rendering
Integrating Direct3D with XAML and Windows 8.1
Further Reading
Index
Customer Reviews