mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Add a CPU based frustum culling that's good enough for flow use case
This commit is contained in:
@ -38,6 +38,9 @@ struct YACReader3DImageRHI {
|
||||
float width;
|
||||
float height;
|
||||
|
||||
// Precomputed bounding sphere radius (world-space) for fast culling
|
||||
float boundingRadius;
|
||||
|
||||
int index;
|
||||
|
||||
YACReader3DVector current;
|
||||
@ -245,6 +248,8 @@ protected:
|
||||
void prepareDrawData(const YACReader3DImageRHI &image, bool isReflection, bool isMark,
|
||||
const QMatrix4x4 &viewProjectionMatrix, float *outInstanceData,
|
||||
UniformData &outUniformData);
|
||||
QMatrix4x4 buildModelMatrix(const YACReader3DImageRHI &image, bool isReflection, bool isMark);
|
||||
QMatrix4x4 buildModelMatrixNoScale(const YACReader3DImageRHI &image, bool isReflection, bool isMark);
|
||||
void executeDrawWithOffset(QRhiCommandBuffer *cb, QRhiTexture *texture,
|
||||
const float *instanceData, int uniformSlot);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user