MedicalVisualization

OpenGL Contouring Shader Example

OpenGL Shader Editor Examples | | Volume Visualization

Simple Contouring:

!!ARBvp1.0
OPTION ARB_position_invariant;
TEMP t;
MOV result.color,vertex.color;
MOV t,vertex.position;
MOV result.texcoord[1],t;
END
!!ARBfp1.0
TEMP t;
MOV t,fragment.texcoord[1];
MAD t,t,10,0.5;
FRC t,t;
SUB t,t,0.1;
CMP t,t,0.5,1;
MUL result.color,t.y,fragment.color;
END


OpenGL Shader Editor Examples | | Volume Visualization

Options: