载入中...
搜索中...
未找到
ReflectionProbeCapture.cpp
浏览该文件的文档.
24 if (!registry || std::find(registries_.begin(), registries_.end(), registry) != registries_.end())
void setBloom(float intensity, float threshold=1.f)
Configure HDR bloom. Zero intensity disables it.
Definition RenderSystem3D.cpp:307
void setUp(float x, float y, float z)
Definition RenderSystem3D.cpp:219
void clearEnvProbe()
Disable box projection and return to an infinite-distance environment.
Definition RenderSystem3D.cpp:335
void clearReflectionProbe(int slot)
Disable one local reflection probe slot.
Definition RenderSystem3D.cpp:362
void setExposure(float ev)
Set exposure compensation in photographic stops. Positive values brighten.
Definition RenderSystem3D.cpp:294
void setEnvIntensity(float intensity)
Definition RenderSystem3D.cpp:292
void setAutoExposure(bool enabled, float minEV=-8.f, float maxEV=8.f)
Enable log-average automatic exposure and set its EV clamp range.
Definition RenderSystem3D.cpp:298
void setTarget(float x, float y, float z)
Definition RenderSystem3D.cpp:208
void setAmbient(float r, float g, float b)
Definition RenderSystem3D.cpp:283
void setEye(float x, float y, float z)
Definition RenderSystem3D.cpp:197
void setEnvMap(Texture *cube)
Specular IBL cubemap (Graphics::newCubemap). nullptr disables IBL.
Definition RenderSystem3D.cpp:290
Definition Graphics.h:125
virtual bool copyHDRCanvasesToCubemap(Canvas *const *sources, int faceCount, Texture *cubemap)
Copy consecutive RGBA16F canvases into cubemap base-level faces.
Definition Graphics.h:590
virtual bool filterHDRReflectionCubemap(Texture *cubemap, int sampleCount=64)
Generate GGX specular mips and final diffuse irradiance for an HDR cubemap. @compatibility Preserves ...
Definition Graphics.h:601
virtual float getLastOffscreen3DGpuDurationMs() const
Return the GPU timestamp duration of the most recently completed offscreen 3D pass,...
Definition Graphics.h:1030
virtual Mesh * newMeshFromArrays(const float *posXYZ, const float *nrmXYZ, const float *uvST, int vertexCount, const uint32_t *indices, int indexCount)=0
Upload a triangle mesh from packed CPU arrays. Owned by Graphics. posXYZ required (vertexCount*3)....
virtual Texture * newHDRCubemap(int faceSize)
Allocate a linear RGBA16F six-layer staging cubemap for runtime capture.
Definition Graphics.h:562
void requestCapture()
Mark all six faces dirty and restart capture at +X.
Definition ReflectionProbeCapture.cpp:51
void setGpuBudgetMs(float milliseconds)
Set the GPU-time budget used by adaptive capture scheduling, in milliseconds.
Definition ReflectionProbeCapture.cpp:329
~ReflectionProbeCapture()
Detach this probe from every registry before script-owned destruction.
Definition ReflectionProbeCapture.cpp:17
bool applyConfiguredToCamera(Camera3D *camera, int slot)
Submit the persistent influence and active cubemap to a Camera3D slot. @compatibility Preserves the s...
Definition ReflectionProbeCapture.cpp:398
std::string getUpdateMode() const
Return the current refresh mode.
Definition ReflectionProbeCapture.cpp:215
bool tickAdaptive()
Advance capture and filtering using the GPU-budget controller's workload.
Definition ReflectionProbeCapture.cpp:361
void setEnvironmentLighting(Texture *environment, float intensity=1.f)
Set non-recursive global environment lighting for captured geometry.
Definition ReflectionProbeCapture.cpp:236
bool tick(int faceBudget=1, int filterSamples=64)
Advance capture, staging, filtering and publishing under the selected policy.
Definition ReflectionProbeCapture.cpp:378
Canvas * getFaceCanvas(int face) const
Return one captured HDR face Canvas in +X,-X,+Y,-Y,+Z,-Z order. @lifetime Returned canvas is borrowed...
Definition ReflectionProbeCapture.cpp:167
void setRefreshInterval(int frames)
Set automatic refresh interval in frames for time_sliced mode.
Definition ReflectionProbeCapture.cpp:225
void setCaptureClusteredLighting(bool enabled)
Enable clustered lighting for captures that exceed the legacy light pack.
Definition ReflectionProbeCapture.cpp:323
bool isCaptureComplete() const
True after at least one complete six-face capture.
Definition ReflectionProbeCapture.h:71
void setSkyFaceTextureScale(int face, float scale)
Set the linear HDR radiance multiplier for one sky face texture.
Definition ReflectionProbeCapture.cpp:288
ReflectionProbeCapture(Graphics *gfx)
Reflection probe capture.
Definition ReflectionProbeCapture.cpp:15
void setSkyFaceTexture(int face, Texture *texture)
Set a directional per-pixel sky texture for one capture face.
Definition ReflectionProbeCapture.cpp:275
void configureInfluence(float extentX, float extentY, float extentZ, float intensity=1.f, float blendDistance=1.f, int priority=0)
Configure the persistent box influence used for lighting and editor display.
Definition ReflectionProbeCapture.cpp:387
void reportGpuDurationMs(float milliseconds)
Report a backend timestamp duration for the most recent probe workload.
Definition ReflectionProbeCapture.cpp:334
bool update(int faceBudget=1)
Capture up to faceBudget dirty faces.
Definition ReflectionProbeCapture.cpp:147
void queueCapture()
Queue a coherent recapture without restarting a revision already in progress.
Definition ReflectionProbeCapture.cpp:84
float getSkyFaceTextureScale(int face) const
Return one sky face texture's linear HDR radiance multiplier.
Definition ReflectionProbeCapture.cpp:297
void setSkyFaceColor(int face, float r, float g, float b)
Override one directional backup sky face in +X,-X,+Y,-Y,+Z,-Z order.
Definition ReflectionProbeCapture.cpp:262
void setUpdateMode(const std::string &mode)
Set refresh mode: static, on_demand, time_sliced, or realtime.
Definition ReflectionProbeCapture.cpp:204
bool applyToCamera(Camera3D *camera, int slot, float extentX, float extentY, float extentZ, float intensity=1.f, float blendDistance=1.f, int priority=0)
Assign the active cubemap to a Camera3D local reflection-probe slot.
Definition ReflectionProbeCapture.cpp:406
void setCaptureMask(int mask)
Set the object-layer mask visible to this reflection capture.
Definition ReflectionProbeCapture.cpp:229
Texture * getSkyFaceTexture(int face) const
Return one directional per-pixel sky texture, or nullptr. @lifetime Returned texture is borrowed; its...
Definition ReflectionProbeCapture.cpp:283
void setCaptureLodDistanceScale(float scale)
Set capture LOD distance scale; below one retains higher-detail LODs farther away.
Definition ReflectionProbeCapture.cpp:310
void configure(float x, float y, float z, int resolution=128, float nearZ=0.1f, float farZ=100.f)
Configure the probe origin, face resolution and clipping planes.
Definition ReflectionProbeCapture.cpp:34
bool stageCapturedFaces()
Copy a complete capture revision into a backend HDR staging cubemap. @compatibility Preserves the scr...
Definition ReflectionProbeCapture.cpp:172
void setSkyColor(float r, float g, float b, float intensity=1.f)
Set a linear HDR backup sky color for empty capture pixels.
Definition ReflectionProbeCapture.cpp:245
bool filterAndPublish(int sampleCount=64)
Filter with 8-512 samples and atomically publish the active cubemap. @compatibility Preserves the scr...
Definition ReflectionProbeCapture.cpp:188
float getSkyFaceColor(int face, int component) const
Return one directional sky-face color component, or zero for invalid indices.
Definition ReflectionProbeCapture.cpp:302
void setCaptureTransparent(bool enabled)
Enable or disable transparent/hair surfaces in probe captures.
Definition ReflectionProbeCapture.cpp:317
Scene-level stable selection of published reflection probes for a camera.
Definition ReflectionProbeRegistry.h:14
static void renderToCanvas(Graphics &gfx, Canvas *target, Camera3D *camera, uint32_t reflectionCaptureMask=0xffffffffu, float lodDistanceScale=1.f, bool includeTransparent=true, bool useClusteredLighting=true, Texture *skyFaceTexture=nullptr, Mesh *skyQuad=nullptr, float skyFaceTextureScale=1.f)
Forward 3D pass into an offscreen canvas using multipart materials, LOD, masked surfaces and sorted t...
Definition RenderSystem3D.cpp:1728
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
eve::Color Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
static constexpr int kMaxReflectionProbes
Definition RenderSystem3D.h:39