zoukankan      html  css  js  c++  java
  • 虚幻4 Gbuffer


    //
    all values that are output by the forward rendering pass struct FGBufferData { // normalized float3 WorldNormal; // 0..1 (derived from BaseColor, Metalness, Specular) float3 DiffuseColor; // 0..1 (derived from BaseColor, Metalness, Specular) float3 SpecularColor; // 0..1, white for SHADINGMODELID_SUBSURFACE_PROFILE and SHADINGMODELID_EYE (apply BaseColor after scattering is more correct and less blurry) float3 BaseColor; // 0..1 float Metallic; // 0..1 float Specular; // 0..1 float4 CustomData; // Indirect irradiance luma float IndirectIrradiance; // Static shadow factors for channels assigned by Lightmass // Lights using static shadowing will pick up the appropriate channel in their deferred pass float4 PrecomputedShadowFactors; // 0..1 float Roughness; // 0..1 ambient occlusion e.g.SSAO, wet surface mask, skylight mask, ... float GBufferAO; // 0..255 uint ShadingModelID; // 0..255 uint SelectiveOutputMask; // 0..1, 2 bits, use HasDistanceFieldRepresentation(GBuffer) or HasDynamicIndirectShadowCasterRepresentation(GBuffer) to extract float PerObjectGBufferData; // in world units float CustomDepth; // Custom depth stencil value uint CustomStencil; // in unreal units (linear), can be used to reconstruct world position, // only valid when decoding the GBuffer as the value gets reconstructed from the Z buffer float Depth; // Velocity for motion blur (only used when WRITES_VELOCITY_TO_GBUFFER is enabled) float4 Velocity; // 0..1, only needed by SHADINGMODELID_SUBSURFACE_PROFILE and SHADINGMODELID_EYE which apply BaseColor later float3 StoredBaseColor; // 0..1, only needed by SHADINGMODELID_SUBSURFACE_PROFILE and SHADINGMODELID_EYE which apply Specular later float StoredSpecular; // 0..1, only needed by SHADINGMODELID_EYE which encodes Iris Distance inside Metallic float StoredMetallic; };

    位置在(UE_4.21EngineShadersPrivateDeferredShadingCommon.ush)  

    这个Gbuffer有点大啊

  • 相关阅读:
    Docker 安装ELK之 zz
    Linux使用Aria2命令下载BT种子/磁力/直链文件 转载
    新路由3newifi3路由器刷机newifi3breed解锁小白刷机教程路由器刷breed老毛子Padavan固件
    从ServerSwitch到SONiC Chassis:数据中心交换机技术的十年探索历程
    SONiC项目的发展及其相关介绍(转载)
    linux后台运行和关闭、查看后台任务
    tsar安装和使用
    浅谈CLOSE_WAIT
    贾扬清牛人(zz)
    Linux Soft-RoCE implementation (zz)
  • 原文地址:https://www.cnblogs.com/dragon2012/p/13724478.html
Copyright © 2011-2022 走看看