00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 00024 #ifndef VVIZFNC_VERT_H 00025 #define VVIZFNC_VERT_H 00026 00027 00038 void VVizOIV6VertexCompatibility(); 00039 00040 00046 vec4 VVizGenerateVertex(); 00047 00048 00055 vec3 VVizTexGen(vec4 vert); 00056 00065 vec3 VVizTexGenVol(vec4 vert); 00066 00067 vec3 VVizComputeViewDir(); 00068 void VVizComputeBackSliceTexCoordPerspective(); 00069 00073 void VVizComputeBackSliceTexCoordOrtho(); 00074 00083 void VVizComputeBackSliceTexCoord(); 00084 00089 void VVizComputeFrontSliceTexCoord(); 00090 00091 //Compute lighting vector when multivolume is off. 00092 void VVizComputeLightingVectorsNoMultiVolume(); 00093 00094 //Compute lighting vector when multivolume is on. 00095 //Vertices are in view space and must be transformed back to object space 00096 void VVizComputeLightingVectorsMultiVolume(); 00097 00098 void VVizComputeLightingVectorsPerspective(); 00099 00100 //Compute lighting vector when multivolume is off. 00101 void VVizComputeLightingVectorsOrthoNoMultiVolume(); 00102 00103 //Compute lighting vector when multivolume is on. 00104 //Vertices are in view space and must be transformed back to object space 00105 void VVizComputeLightingVectorsOrthoMultiVolume(); 00106 00107 00113 void VVizComputeTangentToEyeSpaceMatrix(); 00114 00118 void VVizComputeLightingVectorsOrtho(); 00119 00127 void VVizComputeLightingVectors(); 00128 00130 vec4 VVizTextureLod(sampler3D tex, vec3 tcoord, float mipLevel); 00131 00133 vec4 VVizTextureLod(sampler2D tex, vec2 tcoord, float mipLevel); 00134 00140 float VVizGetLuminance(VVIZ_DATATYPE data); 00141 00142 #endif 00143 00144 00145