/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Plugins/ParticlePlugin/Shaders/Particles/ParticleSystemConstants.h
34 строки
848 B
Jan Krassnigg
Particle System Improvements (#1995)
21 июл 2026, 16:50
Не верифицирован
21 июл 2026, 16:50
5e8aa52
Код
Авторство
О чём код?
#pragma once #include <Shaders/Common/ConstantBufferMacros.h> #include <Shaders/Common/Platforms.h> CONSTANT_BUFFER2(ezParticleSystemConstants, 2, BG_DRAW_CALL) { MAT4(ObjectToWorldMatrix); // random variations, can be combined with flipbook animations UINT1(TextureAtlasVariationFramesX); UINT1(TextureAtlasVariationFramesY); // flip-book animations UINT1(TextureAtlasFlipbookFramesX); UINT1(TextureAtlasFlipbookFramesY); // for trail particles FLOAT1(SnapshotFraction); INT1(NumUsedTrailPoints); // use this instead of world clock for determinism FLOAT1(TotalEffectLifeTime); // lighting params FLOAT1(NormalCurvature); FLOAT1(LightDirectionality); // fade out params FLOAT1(GeometryProximityFadeOut); FLOAT1(CameraProximityFadeOut); UINT1(TextureAtlasOrientation); // 0=Up,1=Right,2=Down,3=Left };