Shader texture_uv_simple

Click on the filename to display or download the file.

texture_uv_simple.mi
declare shader 
    color "texture_uv_simple" ( 
        color texture "tex" ) 
    version 1 
    apply material, texture 
end declare 

texture_uv_simple.c
#include "shader.h" 
 
struct texture_uv_simple { 
    miTag tex; 
}; 
 
DLLEXPORT 
int texture_uv_simple_version(void) { return 1; } 
 
DLLEXPORT 
miBoolean texture_uv_simple (  
    miColor *result, miState *state, struct texture_uv_simple *paras ) 
{ 
    mi_lookup_color_texture( 
        result, state, *mi_eval_tag(&paras->tex), &state->tex_list[0]); 
 
    return miTRUE; 
} 

22 April 2008 23:39:56