Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
300 stars 95 forks source link

Voxel Light Source Position Customization #1336

Closed Metadorius closed 3 months ago

Metadorius commented 3 months ago

TODO

Allows customizing the direction of voxel light in order to provide better visuals ingame.

In rulesmd.ini

[AudioVisual]
VoxelLightSource=0.02,-0.69,0.36
VoxelShadowLightSource=0.02,-0.69,0.36

The values are unset by default. The example values are according to the convo in Discord where @thomassneddon and CCrisp mentioned that those coords correspond are used to produce the following (apparently in radians? not sure)

This is the value of projected light source direction i mentioned above, and as a result, the world space direction of YR VXL light is approx 0.20, -0.91, -0.36

On stock voxels, VPL, palette this looks like this, vanilla vs the above:

vanilla tweaked

github-actions[bot] commented 3 months ago

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Metadorius commented 3 months ago

image