14.12.2012 Views

Direct3D HLSL Programming using RenderMonkey IDE

Direct3D HLSL Programming using RenderMonkey IDE

Direct3D HLSL Programming using RenderMonkey IDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Adding Opacity to Butterly<br />

Wings<br />

Resulted color is modulated by the opacity value to add<br />

transparency to the wings:<br />

// Premultiply alpha blend to avoid clamping the highlights:<br />

baseColor *= fOpacity;<br />

*<br />

Game Developer Conference, San Jose, CA, March 7 th 2003<br />

=

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!