Commit Graph

3 Commits (8a33852395ee8d7691fef9c27d8eb3d6af5f056e)

Author SHA1 Message Date
cutealien 8a33852395 SOverrideMaterial can now override layers, textures and the layer-flags can now be for more than just first layer.
Just completing SOverrideMaterial somewhat (some values still can't be set as they have no flags...).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5844 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-08-15 16:27:17 +00:00
cutealien 1a6d8e2913 Replace polygon offsetting in SMaterial with a new implementation.
Deprecate PolygonOffsetFactor and PolygonOffsetDirection in SMaterial.
Replace it by PolygonOffsetDepthBias and PolygonOffsetSlopeScale.
Old values still work for now (as well as they did), but will be removed after Irrlicht 1.9.
The old implementation was based a lot on the way Direct3D8 had worked.
- We only had values -1 and 1 for the slope bias before, but sometimes other values are necessary.
- An int value for PolygonOffsetFactor couldn't worked for Direct3D9 which (unlike D3D8) uses a value range of -1 to 1. 
Thx @ Criss and devsh for implementing some code which showed that different slope scaling is sometimes needed.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5817 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-05-29 19:48:08 +00:00
cutealien 4ee827b16a Move SOverrideMaterial to it's own header.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5528 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-08-23 16:41:15 +00:00