Hi, I want to perform trilinear interpolation of the 8 vertices of a grid cell to determine the value of a certain point inside this grid cell. I wonder if I should perform this operation in the vertex or fragment shader and what the command is to perform such an operation. I wasn’t able to find any documentation about interpolation on shaders anywhere…
you can do trilinear filter operation on pixel in fragment shader.if i guessed correctly,may be you want to do something on primitive,as i know,directx10 added a new shader called gemotery shader can do this,gl can’t yet now.
maybe you should do this in your main program
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.