| 725 | } |
| 726 | |
| 727 | void SceneCache::writeBasicMaterial(OutputStream& stream, const ref<BasicMaterial>& pMaterial) |
| 728 | { |
| 729 | stream.write(pMaterial->mData); |
| 730 | stream.write(pMaterial->mAlphaRange); |
| 731 | stream.write(pMaterial->mIsTexturedBaseColorConstant); |
| 732 | stream.write(pMaterial->mIsTexturedAlphaConstant); |
| 733 | stream.write(pMaterial->mDisplacementMapChanged); |
| 734 | |
| 735 | writeSampler(stream, pMaterial->mpDefaultSampler); |
| 736 | writeSampler(stream, pMaterial->mpDisplacementMinSampler); |
| 737 | writeSampler(stream, pMaterial->mpDisplacementMaxSampler); |
| 738 | } |
| 739 | |
| 740 | void SceneCache::readMaterials(InputStream& stream, MaterialSystem& materialSystem, MaterialTextureLoader& materialTextureLoader, ref<Device> pDevice) |
| 741 | { |