Horde3D

Next-Generation Graphics Engine
It is currently 28.11.2024, 16:48

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Nearest Point Sampling
PostPosted: 01.10.2009, 01:41 
Offline

Joined: 09.09.2009, 00:13
Posts: 12
I tried to use nearest point texture sampling but I didn't find a way.
I am trying to apply it from the sampler shader declaration

Code:
// Samplers
sampler samples = sampler_state
{
   Address = Clamp;
   Filter = None;
};


But then I found that egShader.cpp only supports Trilinear or Bilinear.

Code:
               else if( tok.checkToken( "Filter" ) )
               {
                  if( !tok.checkToken( "=" ) ) return raiseError( "FX: expected '='", tok.getLine() );
                  if( tok.checkToken( "Trilinear" ) ) sampler.filterMode = TexFilterModes::Trilinear;
                  else if( tok.checkToken( "Bilinear" ) ) sampler.filterMode = TexFilterModes::Bilinear;
                  else return raiseError( "FX: invalid enum value", tok.getLine() );
               }


TexFilterModes has None value and egRenderer.cpp seems to catch it

Best regards

_________________
r3D^rgba


Top
 Profile  
Reply with quote  
PostPosted: 01.10.2009, 08:21 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks a lot, I will fix this in the evening.

EDIT: Fixed now.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group