Graphic modification 0.163
Improved detailed shadows to make them less buggy (polygons accenting). Unfortunately flickering on the wheels can't be fixed, because it's floating point precision errors, not shadows themselves.
Changed ssao/ssil code to make it faster and better quality, but ssil vectors are simplified for performance reasons, so if users will tell me it's bad and show on screen where it's bad compared to older versions, i'll make it more complex.
Code: Select all
//code for visualizing sun position on the screen
float2 sundir=SunDirection.xy/SunDirection.w;//.w !=0. It negative when sun is on back side
float2 uvpos=IN.txcoord0.xy*2.0-1.0;
uvpos.y=-uvpos.y;
sundir.xy=(uvpos.xy-sundir.xy);
sundir.y*=ScreenSize.w;
float sunvis=dot(sundir.xy, sundir.xy);
sunvis=saturate(1-pow(sunvis, 0.1))*10;//pow(tempF1.x, 16);
if (SunDirection.w<0.0) sunvis=0.0;
_oC0.xyz+=sunvis;
Code: Select all
float4 SunDirection;