mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
parent
3c2c0960d1
commit
6277f5511c
2 changed files with 30 additions and 7 deletions
|
@ -25,6 +25,9 @@ namespace Terrain
|
|||
matrix.preMultTranslate(osg::Vec3f(0.5f, 0.5f, 0.f));
|
||||
matrix.preMultScale(osg::Vec3f(scale, scale, 1.f));
|
||||
matrix.preMultTranslate(osg::Vec3f(-0.5f, -0.5f, 0.f));
|
||||
// We need to nudge the blendmap to look like vanilla.
|
||||
// This causes visible seams unless the blendmap's resolution is doubled, but Vanilla also doubles the blendmap, apparently.
|
||||
matrix.preMultTranslate(osg::Vec3f(1.0f/blendmapScale/4.0f, 1.0f/blendmapScale/4.0f, 0.f));
|
||||
|
||||
texMat = new osg::TexMat(matrix);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue