1
0
Fork 0

Fix directional lights for AMD

Some AMD drivers do not like triangles for point sprites, which
breaks directional lights.  This works around this by allowing
users to set /rendering/triangle-directional-lights=false which
falls back to the non-directional implementation of a point.
This commit is contained in:
Stuart Buchanan 2020-02-19 20:21:33 +00:00
parent c6e5244b13
commit 8b6d523983

View file

@ -190,6 +190,7 @@ Started September 2000 by David Megginson, david@megginson.com
<building-density type="double" userarchive="y">1.0</building-density> <building-density type="double" userarchive="y">1.0</building-density>
<horizon-effect type="bool" userarchive="y">false</horizon-effect> <horizon-effect type="bool" userarchive="y">false</horizon-effect>
<point-sprites type="bool" userarchive="y">true</point-sprites> <point-sprites type="bool" userarchive="y">true</point-sprites>
<triangle-directional-lights type="bool" userarchive="y">true</triangle-directional-lights>
<enhanced-lighting type="bool" userarchive="y">false</enhanced-lighting> <enhanced-lighting type="bool" userarchive="y">false</enhanced-lighting>
<distance-attenuation type="bool" userarchive="y">false</distance-attenuation> <distance-attenuation type="bool" userarchive="y">false</distance-attenuation>
<particles type="bool" userarchive="y">true</particles> <particles type="bool" userarchive="y">true</particles>