quad-based grass edge diffuse fix + build

This commit is contained in:
turanszkij
2016-10-28 11:43:08 +02:00
parent 08255f4603
commit a69c06c46d
3 changed files with 5 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -7,7 +7,7 @@ float4 main(QGS_OUT PSIn) : SV_Target
{
float4 color = texture_0.Sample(sampler_linear_clamp,PSIn.tex);
clip(color.a - 1.0f / 256.0f); // cancel heaviest overdraw for the alpha composition effect
float opacity = color.a;
float opacity = 1;
color = DEGAMMA(color);
float3 P = PSIn.pos3D;
float3 V = g_xCamera_CamPos - P;
+4
View File
@@ -993,6 +993,10 @@ static const int RESOLUTION = 36;
struct EnvironmentProbe : public Transform
{
wiRenderTarget cubeMap;
bool realTime;
bool isUpToDate;
EnvironmentProbe() :realTime(false), isUpToDate(false) {}
};
struct Model : public Transform