Improved particles and trajectory rendering #430

Merged
Xenosas1337 merged 19 commits from SP3-1-Rendering into main 2023-03-20 16:55:29 +08:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit 9ead2b6b12 - Show all commits

View File

@ -170,7 +170,7 @@
Angular Ranges And Offset: {x: 6.19999981, y: 1.10000002, z: 0, w: 0.100000001}
Rotation Speed: 0.0309999995
Rotation Decay: 0.0199999996
Texture Asset ID: 0
Texture Asset ID: 63456868
Custom Update Shader Asset ID: 0
IsActive: true
Scripts: ~

View File

@ -590,8 +590,15 @@ namespace YAML
SHResourceManager::FinaliseChanges();
//gfxSystem->BuildTextures();
rhs.SetTextureIndex(texture->TextureArrayIndex);
rhs.SetTextureAssetID(id);
if (texture)
{
rhs.SetTextureIndex(texture->TextureArrayIndex);
rhs.SetTextureAssetID(id);
}
else
{
SHLOG_WARNING ("Texture not set for particle emitter component: texture handle is null. ");
}
}
if (node[CUSTOM_UPDATE_SHADER_ASSET_ID_TAG.data()].IsDefined())