Changeset 535 for trunk/src/engine
- Timestamp:
- 01/12/17 19:15:29 (8 years ago)
- Location:
- trunk/src/engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/material_manager.cc
r517 r535 19 19 uint8 data[2 * 2 * 4]; 20 20 nv::raw_fill_n( data, 2 * 2 * 4, 0 ); 21 m_default = m_context->create_texture( ivec2(2,2), nv:: image_format( nv::RGBA ), nv::sampler(), data );21 m_default = m_context->create_texture( ivec2(2,2), nv::RGBA8, nv::sampler(), data ); 22 22 } 23 23 -
trunk/src/engine/shadow.cc
r508 r535 12 12 { 13 13 m_map_size = map_size; 14 m_maps = context->create_texture( TEXTURE_2D_ARRAY, ivec3( map_size, map_size, count ), image_format( DEPTH24, UINT ), sampler( sampler::LINEAR, sampler::CLAMP_TO_EDGE ), nullptr );14 m_maps = context->create_texture( TEXTURE_2D_ARRAY, ivec3( map_size, map_size, count ), DEPTH24, sampler( sampler::LINEAR, sampler::CLAMP_TO_EDGE ), nullptr ); 15 15 m_passes.resize( count ); 16 16 for ( uint32 i = 0; i < count; ++i ) … … 32 32 void nv::shadow_data::initialize( context* context, uint32 count, uint32 map_size, const render_pass& pass_base, const render_pass& color_base ) 33 33 { 34 m_color_maps = context->create_texture( TEXTURE_2D_ARRAY, ivec3( map_size, map_size, count ), image_format( RGBA16F, FLOAT ), sampler( sampler::LINEAR, sampler::CLAMP_TO_EDGE ), nullptr );34 m_color_maps = context->create_texture( TEXTURE_2D_ARRAY, ivec3( map_size, map_size, count ), RGBA16F, sampler( sampler::LINEAR, sampler::CLAMP_TO_EDGE ), nullptr ); 35 35 36 36 initialize( context, count, map_size, pass_base );
Note: See TracChangeset
for help on using the changeset viewer.