mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-30 23:30:27 +02:00
- BurningVideo: 0.50
- 10 year anniversary update - Lighting model reworked. moved to eyespace like openGL. [Specular Highlights, Fog, Sphere/Reflection Map] - increased internal s4DVertex to support 4 Textures and 4 Colors [switchable] - Textures are handled as sRGB during Mipmap Generation. More accurate, less visual disruption - 2D is drawn as 3D like hardware drivers. [switchable]. enables viewport scaling, material2D - Texture Spatial Resolution Limiting working. [lower memory consumption,SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE] - SuperTuxKart 8.0.1 playable git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6086 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -26,6 +26,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_
|
||||
{
|
||||
if (Driver)
|
||||
Driver->setFallback_Material(material.MaterialType);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
video::CBurningVideoDriver* Driver;
|
||||
@ -47,7 +54,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
|
||||
//! Transparent material renderer
|
||||
class CSoftware2MaterialRenderer_TRANSPARENT_ADD_COLOR : public CSoftware2MaterialRenderer
|
||||
{
|
||||
@ -75,40 +81,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
//! unsupported material renderer
|
||||
class CBurningShader_REFERENCE : public CSoftware2MaterialRenderer
|
||||
{
|
||||
public:
|
||||
CBurningShader_REFERENCE ( video::CBurningVideoDriver* driver )
|
||||
: CSoftware2MaterialRenderer ( driver ) {}
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_
|
||||
{
|
||||
}
|
||||
|
||||
virtual void OnUnsetMaterial() _IRR_OVERRIDE_
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool isTransparent() const _IRR_OVERRIDE_
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) _IRR_OVERRIDE_
|
||||
{
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
virtual s32 getRenderCapability() const _IRR_OVERRIDE_
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // end namespace video
|
||||
|
Reference in New Issue
Block a user