CS 468 Cg Texture Mapping. Jon Moon Spring 2004 Computer Science Cornell University. Agenda. NVIDIA’s Cg Browser effects Bump Mapping Reflection Mapping Thin Film Bump Horizon Mapping Car Paint Bumpy Shiny Patch Watch demo, understand the shaders. Cg Commands.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
float2 decalCoords : TEXCOORD0;
uniform sampler2D decal, etc.
float3 decalColor = tex2D(decal, IN.decalCoords).rgb;