mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Merge pull request #1760 from marauder2k9-torque/ShaderGen-produce-shaderdata
Shader Gen to produce ShaderData
This commit is contained in:
commit
bac9ed99b3
13 changed files with 477 additions and 128 deletions
|
|
@ -771,7 +771,7 @@ void AssimpShapeLoader::extractTexture(U32 index, aiTexture* pTex)
|
|||
{ // Compressed format, write the data directly to disc
|
||||
texPath.setExtension(pTex->achFormatHint);
|
||||
FileStream *outputStream;
|
||||
if ((outputStream = FileStream::createAndOpen(texPath.getFullPath(), Torque::FS::File::Write)) != NULL)
|
||||
if ((outputStream = FileStream::createAndOpen(texPath.getFullPath(), Torque::FS::File::Write, FileStream::AsyncMode::Background)) != NULL)
|
||||
{
|
||||
outputStream->setPosition(0);
|
||||
outputStream->write(pTex->mWidth, pTex->pcData);
|
||||
|
|
|
|||
|
|
@ -720,7 +720,7 @@ static bool sReadCollada(const Torque::Path& path, TSShape*& res_shape)
|
|||
// Cache the model to a DTS file for faster loading next time.
|
||||
cachedPath.setExtension("cached.dts");
|
||||
// Cache the model to a DTS file for faster loading next time.
|
||||
FileStream dtsStream;
|
||||
FileStream dtsStream(FileStream::AsyncMode::Background);
|
||||
if (dtsStream.open(cachedPath.getFullPath(), Torque::FS::File::Write))
|
||||
{
|
||||
Con::printf("Writing cached shape to %s", cachedPath.getFullPath().c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue