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.

Making Butterly Wings<br />

Iridescent<br />

Iridescence Sample is a view-dependent Scale gradient and map bias based effect gradient on the map computed index to make index<br />

iridescence change quicker across the wings<br />

// Compute index into the iridescence gradient map, which<br />

// consists of N*V coefficient<br />

float fGradientIndex = dot( vNormal, View) *<br />

iridescence_speed_scale + iridescence_speed_bias;<br />

// Load the iridescence value from the gradient map:<br />

float4 iridescence = tex1D( gradientMap, fGradientIndex );<br />

Resulting iridescence image:<br />

Game Developer Conference, San Jose, CA, March 7 th 2003

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

Saved successfully!

Ooh no, something went wrong!