Add customizable sunlight intensity (both to ZDRayInfo and ZScript)
This commit is contained in:
parent
22eb817db1
commit
c2808809b7
12 changed files with 35 additions and 3 deletions
|
|
@ -246,7 +246,7 @@ void VkLightmapper::UploadUniforms()
|
|||
Uniforms values = {};
|
||||
values.SunDir = SwapYZ(mesh->SunDirection);
|
||||
values.SunColor = mesh->SunColor;
|
||||
values.SunIntensity = 1.0f;
|
||||
values.SunIntensity = mesh->SunIntensity;
|
||||
|
||||
uniforms.Uniforms = (uint8_t*)uniforms.TransferBuffer->Map(0, uniforms.NumStructs * uniforms.StructStride);
|
||||
*reinterpret_cast<Uniforms*>(uniforms.Uniforms + uniforms.StructStride * uniforms.Index) = values;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue