当我们遇到图形问题时,需要一个清单列表来帮助我们逐个归类到底是那种问题类型。此清单将不停更新,以备日后参考。
如果你观察条纹或摩尔纹,这表明可能是浮点精度问题。
有时候结果是完全错误的,而且远远超出了你的预期。在这种情况下,有必要仔细检查整个管道状态。
| void Heightmap::GetHeightMapMipmapData(dynamic_array<SInt16>& heights, int mipLevel) const | |
| { | |
| float skipScale = 1 << mipLevel; | |
| int VertexNum = (GetResolution()-1); | |
| int MipmapVertexNum=VertexNum/skipScale; | |
| float scaleFactor = static_cast<float>(GetHeight() - 1) / (MipmapVertexNum - 1); | |
| heights.reserve(MipmapVertexNum*MipmapVertexNum); | |
| for (int y = 0; y < MipmapVertexNum; y++) | |
| { | |
| for (int x = 0; x < MipmapVertexNum; x++) |
| const FMeshMapBuildData* GetMeshMapBuildData() const | |
| { | |
| AActor* Owner = GetOwner(); | |
| if (Owner) | |
| { | |
| ULevel* OwnerLevel = Owner->GetLevel(); | |
| if (OwnerLevel && OwnerLevel->OwningWorld) | |
| { |
| void ULandscapeComponent::GeneratePlatformVertexData(const ITargetPlatform* TargetPlatform) | |
| { | |
| if (IsTemplate()) | |
| { | |
| return; | |
| } | |
| check(GetHeightmap()); | |
| check(GetHeightmap()->Source.GetFormat() == TSF_BGRA8); | |
| TArray<uint8> NewPlatformData; |
| #define M void mainImage(out vec4 r,vec2 u){vec2 i=u-u;r-=r | |
| #define A texelFetch(iChannel0,ivec2(i+u),0) | |
| M;for(int k=0;++k<289;r+=A*(.3-.03*dot(i,i))*exp(-.1*dot(i,i)))i=vec2(k%17,k/17)-8.;r=iFrame<2?-u.xyxy:clamp(r,0.,1.);} | |
| M-A;} |
| // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. | |
| /*============================================================================= | |
| PostprocessAmbientOcclusion.usf: To generate ambient occlusion as a postprocess | |
| =============================================================================*/ | |
| #include "Common.usf" | |
| #include "PostProcessCommon.usf" | |
| #include "DeferredShadingCommon.usf" |
| @echo off | |
| setlocal EnableDelayedExpansion | |
| rem Get the Unreal Engine used by this project by querying the registry for the engine association found in the .uproject. | |
| set UNREAL_ENGINE="" | |
| set UPROJECT="" | |
| rem First find the .uproject | |
| for /f "delims=" %%A in (' powershell -Command "Get-ChildItem %~dp0../ -Depth 1 -Filter *.uproject -File | %% {$_.FullName}" ') do set UPROJECT="%%A" |