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有点大啊

  • 相关阅读:
    delphi string.split 按照任意字符串分割语句
    学习 TTreeView [16]
    学习 TTreeView [15]
    delphi TClientDatset资料
    delphi7 clientdataset 详解
    为TMenuItem增加指针Data属性
    构建一个用于产品介绍的WEB应用
    图片延迟加载技术-Lazyload的应用
    你想不到的压缩方法:将javascript文件压缩成PNG图像存储
    如何更快速加载你的JS页面
  • 原文地址:https://www.cnblogs.com/dragon2012/p/13724478.html
Copyright © 2011-2022 走看看