载入中...
搜索中...
未找到
ScreenSpaceReflection.cpp
浏览该文件的文档.
76void ScreenSpaceReflection::setMaxSteps(int v) { setFloat("maxSteps", float(std::clamp(v, 1, 512))); }
120void ScreenSpaceReflection::applyFromSceneTo(Graphics *gfx, Texture *sceneColor, Texture *hwDepth,
Definition Exception.h:14
Definition Canvas.h:16
virtual int getWidth() const =0
virtual int getHeight() const =0
Definition Graphics.h:56
virtual Canvas * getCanvas() const =0
virtual void setCanvas(Canvas *canvas)=0
nullptr or this → screen. Switching flushes pending draws to the previous target.
virtual Canvas * newCanvas(int width, int height)=0
Create an offscreen render target (sampleable). Owned by Graphics.
virtual void drawTexturedRectShaderDepth(Texture *color, Texture *depth, Shader *shader, float x, float y, float w, float h, const Color &tint)=0
Fullscreen/post draw sampling color at binding 0 and depth at binding 1 (hardware D32,...
void applyFromSceneTo(Graphics *gfx, Texture *sceneColor, Texture *hwDepth, Texture *worldNormal, Canvas *dest)
Write the SSR result into the currently bound canvas / dest.
Definition ScreenSpaceReflection.cpp:120
void setCamera(float eyeX, float eyeY, float eyeZ, float targetX, float targetY, float targetZ, float upX, float upY, float upZ, float fovYDeg, float aspect, float nearZ, float farZ)
Camera for depth reconstruction (RH + ZO). Builds inv(viewProj) + near/far.
Definition ScreenSpaceReflection.cpp:52
~ScreenSpaceReflection()
Definition ScreenSpaceReflection.cpp:41
Texture * getReflectionTexture()
The reflection texture from the owned canvas, or nullptr before first apply.
Definition ScreenSpaceReflection.cpp:137
void setMaxDistance(float meters)
Definition ScreenSpaceReflection.cpp:74
void setEnabled(bool enabled)
Enable/disable the pass. When disabled it emits transparent (0 hit).
Definition ScreenSpaceReflection.cpp:69
void setThickness(float meters)
Definition ScreenSpaceReflection.cpp:77
void setMaxSteps(int steps)
Definition ScreenSpaceReflection.cpp:76
Canvas * getReflectionCanvas()
Owned reflection canvas (created on first use at the current target size).
Definition ScreenSpaceReflection.cpp:130
void setStepLength(float meters)
Definition ScreenSpaceReflection.cpp:75
void setInvViewProj(const glm::mat4 &invViewProj)
Definition ScreenSpaceReflection.cpp:47
void setStrength(float strength)
Definition ScreenSpaceReflection.cpp:78
ScreenSpaceReflection(Graphics *gfx)
Definition ScreenSpaceReflection.cpp:37
float getFloat(const std::string &name) const
Definition ScreenSpaceReflection.cpp:95
void setFloat(const std::string &name, float value)
Definition ScreenSpaceReflection.cpp:84
void applyFromScene(Graphics *gfx, Texture *sceneColor, Texture *hwDepth, Texture *worldNormal)
Write SSR into the currently bound canvas / screen.
Definition ScreenSpaceReflection.cpp:142
bool hasParam(const std::string &name) const
Definition ScreenSpaceReflection.cpp:80
bool hasUniform(const std::string &name) const
Definition Shader.cpp:46
void sendFloat(const std::string &name, float x)
Definition Shader.cpp:82
void sendMatrix(const std::string &name, const glm::mat4 &m)
Definition Shader.cpp:99
int getFromVar(const std::string &name, void *data, size_t size) const
Definition Shader.cpp:71
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:17
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition AnimTrail.h:6
glm::mat4 perspectiveVulkanRH_ZO(float fovyRad, float aspect, float zNear, float zFar)
Right-handed, zero-to-one depth perspective for Vulkan swapchains.
Definition ClipSpace.h:20
glm::vec4 Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13