Download Users Manual

Transcript
Advanced Profile Sample Shaders
Melting Paint
Description
This shader uses an environment map with procedurally modified texture lookups to create a melting effect on the surface texture (the NVIDIA logo in this example). The reflection vector is shifted using a noise function, giving the appearance of a bumpy surface. The surface texture’s texture coordinates are shifted in a time‐dependent manner, also based on a noise texture.
Fig. 7.
Example of Melting Paint
Vertex Shader Source Code for Melting Paint
// define inputs from application
struct app2vert
{
float4 Position
: POSITION;
float4 Normal
: NORMAL;
808-00504-0000-006
NVIDIA
161