[spline/bezier]Fix to avoid temporarily texture animation bug with hardware tessellation.

This commit is contained in:
xebra
2017-01-24 14:39:19 +09:00
parent 58f731d734
commit 3ecff41908
+3 -1
View File
@@ -787,7 +787,9 @@ void GenerateVertexShader(const ShaderID &id, char *buffer) {
if (scaleUV) {
if (hasTexcoord) {
if (doBezier || doSpline)
WRITE(p, " v_texcoord = tex * u_uvscaleoffset.xy;\n");
// TODO: Need fix?
// Fix to avoid temporarily texture animation bug with hardware tessellation.
WRITE(p, " v_texcoord = tex * u_uvscaleoffset.xy + u_uvscaleoffset.zw;\n");
else
WRITE(p, " v_texcoord = texcoord * u_uvscaleoffset.xy;\n");
} else {