原创 重要性採樣 ggx

https://patapom.com/blog/Math/ImportanceSampling/ https://www.tobias-franke.eu/log/2014/03/30/notes_on_importance_sampli

原创 好美的一篇證明--cube texel 投影到sphere上 對應的solid angle的計算

http://www.rorydriscoll.com/2012/01/15/cubemap-texel-solid-angle/ 先上代碼     算法: 先分別算了  p點(xyz)在x方向變化 的偏導 在y方向變化 的偏導    

原创 ue mobile 延遲光照 點光源 volumtric測試

point light  的volumtric camera 在volumtric外面        1.渲染volumetric的backface(渲染球靠近camera的一半) 深度測試 留下遠的 綠色     2.渲染volumtr

原创 ue flip y

https://veldrid.dev/articles/backend-differences.html https://www.puredevsoftware.com/blog/2018/03/17/texture-coordinate

原创 對sdf 數據的理解 signed distance field

首先 物體邊緣暈染出一圈 是到附近物體表面的距離           圖1     圖2  立方體側面這個區域  用圖1的方式看 有白邊 傾斜camera 稍微正對這個面 如圖2 就不白了 圖1的白邊是空間中 很多比較小的距離加出來的

原创 ue shader parameter structure/class FSceneTexturesUniformParameters

       這貨像是上層封裝pass的貼圖的      shader資源都bind到global shader parameter structure裏 包含texture scenetextureUniformparameters就

原创 ue /metal texture memory management// Occupancy

https://developer.apple.com/documentation/metal/setting_resource_storage_modes/choosing_a_resource_storage_mode_in_macos

原创 ue裏對 UBMT_SRV和UBMT_TEXTURE的封裝

texture 如果要被採樣就該綁成srv這裏封成兩種就很奇怪了 跟了下看 使用時比如 這裏 // Custom Depth / Stencil SHADER_PARAMETER_TEXTURE(Texture2D<float>, C

原创 ue渲染列表

scenevisibility.cpp   MarkRelevant() 逐個primitive 加到 分屬於各個pass的渲染list   ComputeDynamicMeshRelevance() NumElements = MeshB

原创 ambient occlusion /佔坑

 

原创 ue shader compiler

佔坑 hlsl--dxc--spirv--各個平臺 metalcompiler  vulkanbackend glslbackend    openGL     dxc    vulkan   metal      windows/d

原创 android gpu inspector

https://gpuinspector.dev/ google的 有gpu trace 和counter 據說比 adreno profiler和mali profiler好用   A single tool that will help

原创 ue deferred renderer

https://www.bilibili.com/video/BV11a4y1H7jC desktop renderer 和mobile renderer各有一個deferred renderer 用設置就能開     mobile def

原创 ue4 filmic tonemapper 對比度 飽和度過低的問題

       我截圖工具有問題 所有截圖 大家腦補一次srgb轉換吧    ue4新的tonemapper會更灰白一些 顏色更平 對比度更低 飽和度更低 yebis那個是不是好些       這幾張圖 腦補一張srgb轉換 截圖工具比

原创 ios分辨率

https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions            https://benui.ca/unreal/ui-resolu