Detailed Description
- See also:
- Class Sampler,
Class ShadeContext, Class Color, Class Point2.
- Description:
- This class is available in release 3.0 and later only.
This is the callback object for the DoSamples() method of
class Sampler.
The SampleAtOffset()
method is the one that actually computes the shading value for the
Sampler.
#include <samplers.h>
List of all
members.
Member Function Documentation
virtual BOOL SampleAtOffset |
( |
ShadeOutput * |
pOut, |
|
|
Point2 & |
sample, |
|
|
float |
sampleScale |
|
) |
|
[pure virtual] |
- Parameters:
- ShadeOutput* pOut
The output of the sampling
Point2&
sample
The 2D sample point.
float sampleScale
The scale of the sample. This parameter is the way a sampler tells
the shader to use the whole pixel (sampleScale=1) size for texture
samples or some fraction. This scale is an edge scale not an
area scale, so if you want samples 1/4 pixel large the
sampleScale should be 1/2.
- Returns:
- TRUE if the sample was processed; FALSE if the clipped sample
was ignored.
SamplingCallback SamplingCallback
SamplingCallback SamplingCallback SamplingCallback SamplingCallback
SamplingCallback SamplingCallback SamplingCallback
SamplingCallback
SamplingCallback SamplingCallback
SamplingCallback SamplingCallback SamplingCallback SamplingCallback
SamplingCallback SamplingCallback SamplingCallback
SamplingCallback