voxel gi fix

This commit is contained in:
turanszkij
2019-12-22 00:41:11 +01:00
parent 69af3831d2
commit de596ce485
3 changed files with 6 additions and 7 deletions
+1 -3
View File
@@ -48,9 +48,7 @@ void main(PSInput input)
emissiveColor *= emissiveMap;
}
// fake normals are good enough because it's only coarse diffuse light, no need to normalize:
// (just uncomment if there are any noticable artifacts)
//N = normalize(N);
N = normalize(N);
Lighting lighting = CreateLighting(0, 0, 0, 0);
+4 -3
View File
@@ -136,9 +136,9 @@ struct VoxelizedSceneData
float voxelsize = 1;
XMFLOAT3 center = XMFLOAT3(0, 0, 0);
XMFLOAT3 extents = XMFLOAT3(0, 0, 0);
uint32_t numCones = 8;
float rayStepSize = 0.5f;
bool secondaryBounceEnabled = true;
uint32_t numCones = 4;
float rayStepSize = 0.75f;
bool secondaryBounceEnabled = false;
bool reflectionsEnabled = true;
bool centerChangedThisFrame = true;
uint32_t mips = 7;
@@ -6685,6 +6685,7 @@ void VoxelRadiance(CommandList cmd)
GPUResource* UAVs[] = { &resourceBuffers[RBTYPE_VOXELSCENE] };
device->BindUAVs(PS, UAVs, 0, 1, cmd);
BindCommonResources(cmd);
BindShadowmaps(PS, cmd);
BindConstantBuffers(VS, cmd);
BindConstantBuffers(PS, cmd);
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 36;
// minor bug fixes, alterations, refactors, updates
const int revision = 15;
const int revision = 16;
long GetVersion()