![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UE4虚幻引擎
JiahongWu
追求卓越的程序员。
展开
-
UE4编辑器模式下使用HitProxy
需要从 UGameViewportClient 类继承修改返回值为true,路径:\Source\Runtime\Engine\Private\GameViewportClient.hvirtual bool RequiresHitProxyStorage() override { return true; }在FViewportClient类中新建DrawHitProxy函数文件UnrealClient.h在GameViewportClient类中声明并且实现声明:\Source\Runt原创 2020-07-25 20:49:41 · 1214 阅读 · 8 评论 -
UE4获取深度缓存
深度像素格式键入命令vis scenedepthz uv0以查看实际使用的深度缓冲区。UE4对场景使用“反向”深度缓冲区。获取在任意tick函数或者其他函数添加以下的命令:struct DepthPixel //定义深度像素结构体 { float depth; char stencil; char unused1; char unused2; char unused3; }; float* cpuDataPtr; // Texture深度值数组首地址 TArray&l原创 2020-07-25 20:45:17 · 1918 阅读 · 2 评论