0

I am currently porting an app over from iOS to Windows Phone 8. It is an image processing app, and all calculations are done on the GPU using pixel shaders.

There is one detail that I just haven't been able to figure out, that is Texel Width/Height offsets. I have absolutely no idea what these values are, and I can't seem to find any information on them.

Are they common terms? Does anybody know what they represent? Does anyone know what sort of values should be in them?

4

1 回答 1

1

Texel 是由坐标定位的纹理像素,纹理中的偏移量是纹理开始映射到模型或渲染目标的位置。

最简单的例子: http ://lifeasa.files.wordpress.com/2011/02/super_mario_world_by_xinzax.png 舞台地图是一些纹理,当马里奥在关卡中前进时,X坐标偏移增加,右边纹理的一部分变得可见,同时左侧变得隐藏。

检查纹理,如果在单个图像中有多个“部分”,是这样的。

另一种情况是映射到多个对象中的单个纹理,每个对象都有一个偏移量,以显示前一个对象的“段”。

于 2013-01-11T21:41:21.340 回答