Basic Projection Map

A light projection map in VEX.

A .vfl file for creating a projection map in VEX.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 01:18 PM

* Author: Dan Lynch

#pragma hint lightcolor color
#pragma hint pmap image

        vector lightcolor 1;
        float atten 1;
        string pmap="Mandril.pic";
        float ldist length(L);
        Cl lightcolor;

        vector LL ldist;

        Cl *= atten / (ldist atten);

        if (pmap != "")
            vector pos wo_space(Ps);
            pos toNDC(pos);
            Cl *= texture(pmappos.xpos.y"mode""decal""border", {0,0,0});

Download: project_map.vfl 574 B

Please login or Click Here to register for downloads
Creative Commons License
Basic Projection Map by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at
Permissions beyond the scope of this license may be available at