提交 d2bb59bd 编写于 作者: M munrocket@pm.me

fix decode artefacts

上级 22ed6755
......@@ -39,6 +39,7 @@ vec4 encodeHalfRGBA ( vec2 v ) {
}
vec2 decodeHalfRGBA( vec4 v ) {
v = floor( v * 255.0 + 0.5 ) / 255.0;
return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册