mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
darn those texture coordinate calculations
This commit is contained in:
parent
d39c090557
commit
bc355b45bc
@ -2536,7 +2536,8 @@ do_issue_texture() {
|
|||||||
LMatrix4f m = tex_mat->get_mat();
|
LMatrix4f m = tex_mat->get_mat();
|
||||||
_d3d_device->SetTransform(get_tex_mat_sym(i), (D3DMATRIX *)m.get_data());
|
_d3d_device->SetTransform(get_tex_mat_sym(i), (D3DMATRIX *)m.get_data());
|
||||||
DWORD transform_flags = texcoord_dimensions;
|
DWORD transform_flags = texcoord_dimensions;
|
||||||
if (m.get_col3(3) != LVecBase3f::zero()) {
|
//if (m.get_col3(3) != LVecBase3f::zero())
|
||||||
|
{
|
||||||
transform_flags |= D3DTTFF_PROJECTED;
|
transform_flags |= D3DTTFF_PROJECTED;
|
||||||
}
|
}
|
||||||
_d3d_device->SetTextureStageState(i, D3DTSS_TEXTURETRANSFORMFLAGS,
|
_d3d_device->SetTextureStageState(i, D3DTSS_TEXTURETRANSFORMFLAGS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user