Prove released Stardust temporal inputs
This commit is contained in:
parent
0974154fa7
commit
79c4332c6a
6 changed files with 48 additions and 6 deletions
|
|
@ -808,6 +808,22 @@ namespace GameCult.EveUnity.GenericClient.PlayModeTests
|
|||
particleAbiError);
|
||||
Assert.That(fieldParticles.ProgramReady, Is.True,
|
||||
"The generic field-particle lowerer rejected the advertised provider ABI or assets.");
|
||||
var liveParticleMaterial = typeof(EveUnityFieldsParticleRenderer)
|
||||
.GetField("_material", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic)
|
||||
?.GetValue(fieldParticles) as Material;
|
||||
Assert.That(liveParticleMaterial, Is.Not.Null);
|
||||
var ditherTextureProperty = particleMaterialMetadata["unity.particles.texturePort.dither"];
|
||||
var ditherCoordinatesProperty = particleMaterialMetadata["unity.particles.vectorPort.ditherCoordinates"];
|
||||
var renderFrameProperty = particleMaterialMetadata["unity.particles.intPort.frameIndex"];
|
||||
var liveDitherTexture = liveParticleMaterial.GetTexture(ditherTextureProperty);
|
||||
Assert.That(liveDitherTexture, Is.Not.Null,
|
||||
"The generic lowerer did not bind the advertised provider dither texture.");
|
||||
Assert.That(liveParticleMaterial.GetVector(ditherCoordinatesProperty).x,
|
||||
Is.EqualTo((float)camera.pixelWidth / liveDitherTexture.width).Within(0.0001f));
|
||||
Assert.That(liveParticleMaterial.GetVector(ditherCoordinatesProperty).y,
|
||||
Is.EqualTo((float)camera.pixelHeight / liveDitherTexture.height).Within(0.0001f));
|
||||
Assert.That(liveParticleMaterial.GetInt(renderFrameProperty), Is.GreaterThan(0),
|
||||
"The generic lowerer did not advance the advertised render-frame port.");
|
||||
Assert.That(fieldParticles.PresentedFrameId, Is.GreaterThanOrEqualTo(0));
|
||||
Assert.That(fieldParticles.ParticleCount, Is.EqualTo(65536));
|
||||
Assert.That(fieldParticles.DispatchCount, Is.GreaterThan(0));
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.15",
|
||||
"org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3",
|
||||
"org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.2",
|
||||
"org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.56",
|
||||
"org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.57",
|
||||
"org.gamecult.eve.unity-uitoolkit": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#eveunity-uitoolkit-v0.1.1"
|
||||
},
|
||||
"testables": [
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@
|
|||
"hash": "140e1bd963a0033e66777a3b2c5fe6e9c97dfe32"
|
||||
},
|
||||
"org.gamecult.eve.unity-scene": {
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.56",
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.57",
|
||||
"depth": 0,
|
||||
"source": "git",
|
||||
"dependencies": {
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
"com.unity.render-pipelines.universal": "17.4.0",
|
||||
"com.unity.modules.particlesystem": "1.0.0"
|
||||
},
|
||||
"hash": "dfa843cde2c0d9328bb2fa342c9378bf3cdfe6f4"
|
||||
"hash": "0974154fa7c7982c9a8ea0ca006d2698a53e1235"
|
||||
},
|
||||
"org.gamecult.eve.unity-uitoolkit": {
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#eveunity-uitoolkit-v0.1.1",
|
||||
|
|
|
|||
Reference in a new issue