View Full Version : Trilinear Interpolation on shader
09-16-2006, 12:03 PM
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...
09-16-2006, 07:24 PM
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
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.