Show
Ignore:
Timestamp:
02/02/08 23:13:47 (10 months ago)
Author:
krobillard
Message:

Shader parameter type of GL_SAMPLER_2D_SHADOW is now handled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/gl/shader.c

    r458 r504  
    183183            { 
    184184                ur_internWord( cell, pi->name ); 
    185  
     185#if 0 
     186                printf( "KR Shader Param %d is type %d\n", 
     187                        (int) (pi - param), pi->type ); 
     188#endif 
    186189                ++cval; 
    187190                switch( pi->type ) 
     
    220223                    case GL_SAMPLER_2D: 
    221224                    case GL_SAMPLER_3D: 
     225                    case GL_SAMPLER_CUBE: 
     226                    case GL_SAMPLER_1D_SHADOW: 
     227                    case GL_SAMPLER_2D_SHADOW: 
    222228                        ur_initType( cval, UT_NONE ); 
    223229                        ur_texId(cval) = 0;     // Expecting texture!. 
     
    235241                    GL_FLOAT_MAT3: 
    236242                    GL_FLOAT_MAT4: 
    237                     GL_SAMPLER_CUBE: 
    238243                    GL_SAMPLER_2D_RECT: 
    239                     GL_SAMPLER_1D_SHADOW: 
    240                     GL_SAMPLER_2D_SHADOW: 
    241244                    GL_SAMPLER_2D_RECT_SHADOW: 
    242245                    */ 
     
    342345 
    343346                    case GL_SAMPLER_2D: 
     347                    case GL_SAMPLER_2D_SHADOW: 
    344348                        glActiveTexture( GL_TEXTURE0 + texUnit ); 
    345349                        glEnable( GL_TEXTURE_2D );