MCPcopy Create free account
hub / github.com/Kitware/VTK / BuildShaders

Method BuildShaders

Rendering/LICOpenGL2/vtkLineIntegralConvolution2D.cxx:1137–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137VTK_ABI_NAMESPACE_BEGIN
1138//------------------------------------------------------------------------------
1139void 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//------------------------------------------------------------------------------
1164vtkPainterCommunicator* vtkLineIntegralConvolution2D::GetCommunicator()

Callers 1

ExecuteMethod · 0.95

Calls 4

BuildAShaderFunction · 0.85
GetVectorLookupProgramFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected