1
OpenGL / Re: Questioning for a way to modify the interpolating algorithm in vertex rendering
« Last post by Lightbuffer on February 14, 2023, 09:58:39 »I don't think you can simply take and change the interpolation algorithm for the fragments. The only way of achieving your "middle color" is probably by subdividing your quad, i.e. turning your quad into 4 quads, then you'd be able to change the middle intersection vertex of these four quads.
Or another way, probably is possible to pass in UVs, and then based on UVs to implement color blending with some special color in the middle, but that sounds more difficult than subdividing IMO.
Or another way, probably is possible to pass in UVs, and then based on UVs to implement color blending with some special color in the middle, but that sounds more difficult than subdividing IMO.