mirror of
https://github.com/dpethes/rerogue.git
synced 2025-06-07 18:58:32 +02:00
hob viewer: set texture wrap mode to clamp, it seems to be correct
This commit is contained in:
parent
f9f6985a21
commit
0d17290499
@ -4,7 +4,7 @@ unit hob_mesh;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, gl, math, fgl,
|
Classes, SysUtils, gl, GLext, math, fgl,
|
||||||
GenericStructList, hob_parser, hmt_parser;
|
GenericStructList, hob_parser, hmt_parser;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -266,9 +266,9 @@ procedure TModel.InitGL;
|
|||||||
|
|
||||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
|
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
|
||||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
|
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
|
||||||
//which mode?
|
//clamp seems to be the correct mode
|
||||||
// glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||||
// glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
Loading…
x
Reference in New Issue
Block a user