| 1135 | } |
| 1136 | |
| 1137 | VTK_ABI_NAMESPACE_BEGIN |
| 1138 | //------------------------------------------------------------------------------ |
| 1139 | void vtkLineIntegralConvolution2D::BuildShaders() |
| 1140 | { |
| 1141 | vtkOpenGLRenderWindow* renWin = this->Context; |
| 1142 | |
| 1143 | std::string FSSource = vtkLineIntegralConvolution2D_VT; |
| 1144 | vtkShaderProgram::Substitute(FSSource, "//VTK::LICComponentSelection::Impl", |
| 1145 | "vec2 V = texture2D(texVectors, tcoordVC.st)" + |
| 1146 | GetComponentSelectionProgram(this->ComponentIds) + ";"); |
| 1147 | BuildAShader(renWin, &this->VTShader, FSSource.c_str()); |
| 1148 | |
| 1149 | BuildAShader(renWin, &this->LIC0Shader, vtkLineIntegralConvolution2D_LIC0); |
| 1150 | |
| 1151 | FSSource = vtkLineIntegralConvolution2D_LICI; |
| 1152 | vtkShaderProgram::Substitute( |
| 1153 | FSSource, "//VTK::LICVectorLookup::Impl", GetVectorLookupProgram(this->NormalizeVectors)); |
| 1154 | BuildAShader(renWin, &this->LICIShader, FSSource.c_str()); |
| 1155 | |
| 1156 | BuildAShader(renWin, &this->LICNShader, vtkLineIntegralConvolution2D_LICN); |
| 1157 | BuildAShader(renWin, &this->EEShader, vtkLineIntegralConvolution2D_EE); |
| 1158 | BuildAShader(renWin, &this->CEShader, vtkLineIntegralConvolution2D_CE); |
| 1159 | BuildAShader(renWin, &this->AAHShader, vtkLineIntegralConvolution2D_AAH); |
| 1160 | BuildAShader(renWin, &this->AAVShader, vtkLineIntegralConvolution2D_AAV); |
| 1161 | } |
| 1162 | |
| 1163 | //------------------------------------------------------------------------------ |
| 1164 | vtkPainterCommunicator* vtkLineIntegralConvolution2D::GetCommunicator() |
no test coverage detected