7 #ifndef __spatial_ScalarShaderI_h__ 8 #define __spatial_ScalarShaderI_h__ 20 virtual void shade(Real a_value, U8 *a_pixel) = 0;
30 virtual void shade(Real a_value, U8 *a_pixel)
32 a_pixel[0] = (U8)(a_value/2.0 + 50.0);
33 a_pixel[1] = a_pixel[0];
34 a_pixel[2] = a_pixel[0];
kernel
Definition: namespace.dox:3
Shader for DrawScalarField.
Definition: ScalarShaderI.h:17
Base for all interfacable components.
Definition: Component.h:20
A simple greyscale scalar field shader.
Definition: ScalarShaderI.h:25