摘要: 序列帧动画的实质是uv信息的变化,理解Tiling(图片占得比例大小)和Offset(图片的偏移量)。默认左下角offset为0 0 Tiling为小图/大图代码如下:public int rowNum ;public int lineNum ;public float iconwidth ;public float iconheight ;public int tileNum=6;public float texWidth ;public float texHeight ;int achievementIndex=0;float uWidth = 0;float vHeight = 0;// 阅读全文
posted @ 2013-03-21 14:40 U_探索 阅读(5405) 评论(0) 推荐(1) 编辑
摘要: 混合(Blending)是计算机呈现渲染结果的最后阶段,每一个像素将被绘制到屏幕上。混合的基本公式:Blend SrcFactor DstFactor 将前面各种计算产生的颜色(fragment_output )*SrcFactor+当前屏幕的颜色(pixel_color)*DstFactor 等价于float4 result = SrcFactor * fragment_output + DstFactor * pixel_color;混合的一个基本参数介绍:CodeResulting Factor (SrcFactor or DstFactor)Onefloat4(1.0)Zerofloa 阅读全文
posted @ 2013-03-21 10:16 U_探索 阅读(721) 评论(0) 推荐(1) 编辑