blob: 3c217ad58c9a8eed84e3a85ad33473f1af321da2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
=== modified file 'plugins/cubeaddon/src/cubeaddon.cpp'
--- a/plugins/cubeaddon/src/cubeaddon.cpp 2013-05-09 13:43:07 +0000
+++ b/plugins/cubeaddon/src/cubeaddon.cpp 2015-09-22 13:33:09 +0000
@@ -591,8 +591,8 @@
mCapFill[i * 3 + 1],
mCapFill[i * 3 + 2],
1.0f);
- float s = v * sGen;
- float t = v * tGen;
+ float s = v * sGen + 0.5;
+ float t = v * tGen + 0.5;
*(texCoordsPtr++) = s;
*(texCoordsPtr++) = t;
@@ -653,8 +653,8 @@
* texCoord.s = dot (vec4 (obj, 1.0), sGenPlane)
* texCoord.t = dot (vec4 (obj, 1.0), tGenPlane)
*/
- float s = v * sGen;
- float t = v * tGen;
+ float s = v * sGen + 0.5;
+ float t = v * tGen + 0.5;
*(texCoordsPtr++) = s;
*(texCoordsPtr++) = t;
|