mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Let's use OpenGL-style vertex colors by default on non-Windows platforms
This commit is contained in:
parent
b323d73622
commit
4976345486
@ -2244,9 +2244,15 @@ make_vertex_data(const EggRenderState *render_state,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ignore_color) {
|
if (!ignore_color) {
|
||||||
array_format->add_column
|
// Let's not use Direct3D-style colors on platforms where we only
|
||||||
(InternalName::get_color(), 1,
|
// have OpenGL anyway.
|
||||||
|
#ifdef _WIN32
|
||||||
|
array_format->add_column(InternalName::get_color(), 1,
|
||||||
Geom::NT_packed_dabc, Geom::C_color);
|
Geom::NT_packed_dabc, Geom::C_color);
|
||||||
|
#else
|
||||||
|
array_format->add_column(InternalName::get_color(), 4,
|
||||||
|
Geom::NT_uint8, Geom::C_color);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
vector_string uv_names, uvw_names, tbn_names;
|
vector_string uv_names, uvw_names, tbn_names;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user