mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 08:49:18 +02:00
milek7/sim branch opengl 3.3 renderer import
This commit is contained in:
@@ -200,7 +200,7 @@ shape_node::import( cParser &Input, scene::node_data const &Nodedata ) {
|
||||
// TBT, TODO: add methods to material manager to access these simpler
|
||||
auto const texturehandle = (
|
||||
m_data.material != null_handle ?
|
||||
GfxRenderer->Material( m_data.material ).texture1 :
|
||||
GfxRenderer->Material( m_data.material ).textures[0] :
|
||||
null_handle );
|
||||
auto const &texture = (
|
||||
texturehandle ?
|
||||
@@ -346,7 +346,7 @@ shape_node::convert( TSubModel const *Submodel ) {
|
||||
m_data.lighting.diffuse = Submodel->f4Diffuse;
|
||||
m_data.lighting.specular = Submodel->f4Specular;
|
||||
m_data.material = Submodel->m_material;
|
||||
m_data.translucent = ( true == GfxRenderer->Material( m_data.material ).has_alpha );
|
||||
m_data.translucent = ( true == GfxRenderer->Material( m_data.material ).is_translucent() );
|
||||
// NOTE: we set unlimited view range typical for terrain, because we don't expect to convert any other 3d models
|
||||
m_data.rangesquared_max = std::numeric_limits<double>::max();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user