-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from doodlum/dev
- Loading branch information
Showing
129 changed files
with
6,220 additions
and
2,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build/ | ||
dist/ | ||
.vs*/ | ||
CMakeUserPresets.json | ||
CMakeUserPresets.json | ||
shadertoolsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
namespace FeatureVersions | ||
{ | ||
using namespace std::literals::string_view_literals; | ||
|
||
static const std::map<std::string_view, REL::Version> FEATURE_MINIMAL_VERSIONS | ||
{ | ||
@FEATURE_VERSIONS@ | ||
}; | ||
} |
Submodule CommonLibSSE-NG
updated
126 files
50 changes: 50 additions & 0 deletions
50
features/Cloud Shadows/Shaders/CloudShadows/CloudShadows.hlsli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
struct PerPassCloudShadow | ||
{ | ||
uint EnableCloudShadows; | ||
|
||
float CloudHeight; | ||
float PlanetRadius; | ||
|
||
float EffectMix; | ||
|
||
float TransparencyPower; | ||
float AbsorptionAmbient; | ||
|
||
float RcpHPlusR; | ||
}; | ||
|
||
StructuredBuffer<PerPassCloudShadow> perPassCloudShadow : register(t23); | ||
TextureCube<float4> cloudShadows : register(t40); | ||
|
||
float3 getCloudShadowSampleDir(float3 rel_pos, float3 eye_to_sun) | ||
{ | ||
float r = perPassCloudShadow[0].PlanetRadius; | ||
float3 p = (rel_pos + float3(0, 0, r)) * perPassCloudShadow[0].RcpHPlusR; | ||
float dotprod = dot(p, eye_to_sun); | ||
float lengthsqr = dot(p, p); | ||
float t = -dotprod + sqrt(dotprod * dotprod - dot(p, p) + 1); | ||
float3 v = (p + eye_to_sun * t) * (r + perPassCloudShadow[0].CloudHeight) - float3(0, 0, r); | ||
v = normalize(v); | ||
return v; | ||
} | ||
|
||
float3 getCloudShadowSampleDirFlatEarth(float3 rel_pos, float3 eye_to_sun) | ||
{ | ||
float3 p = rel_pos / perPassCloudShadow[0].CloudHeight; | ||
float dotprod = dot(p, eye_to_sun); | ||
float t = -dotprod + sqrt(dotprod * dotprod - dot(p, p) + 1); | ||
float3 v = p + eye_to_sun * t; | ||
v = normalize(v); // optional | ||
return v; | ||
} | ||
|
||
float3 getCloudShadowMult(float3 rel_pos, float3 eye_to_sun, SamplerState samp) | ||
{ | ||
// float3 cloudSampleDir = getCloudShadowSampleDirFlatEarth(rel_pos, eye_to_sun).xyz; | ||
float3 cloudSampleDir = getCloudShadowSampleDir(rel_pos, eye_to_sun).xyz; | ||
|
||
float4 cloudCubeSample = cloudShadows.Sample(samp, cloudSampleDir); | ||
float alpha = pow(saturate(cloudCubeSample.w), perPassCloudShadow[0].TransparencyPower); | ||
|
||
return lerp(1.0, 1.0 - alpha, perPassCloudShadow[0].EffectMix); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Info] | ||
Version = 1-1-0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
features/Complex Parallax Materials/Shaders/Features/ComplexParallaxMaterials.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[Info] | ||
Version = 1-0-2 | ||
Version = 1-0-3 |
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/Orcish_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/SR_Dull_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/SR_Ebony_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/SR_Elven_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/SR_Iron_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/SR_Shiny_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/SR_Steel_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/Silver_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/bronze_e.dds
Binary file not shown.
Binary file renamed
BIN
+152 Bytes
...tals/textures/cubemaps/AMBEbonyGold_e.dds → ...ls/textures/cubemaps/caveicecubemap_e.dds
Binary file not shown.
Binary file renamed
BIN
+152 Bytes
...- Metals/textures/cubemaps/AMBEbony_e.dds → ...s - Metals/textures/cubemaps/chitin_e.dds
Binary file not shown.
Binary file renamed
BIN
+152 Bytes
.../textures/cubemaps/bloodshinybright_e.dds → ...tals/textures/cubemaps/chitin_e_ebony.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/copper_e.dds
Binary file not shown.
Binary file removed
BIN
-152 Bytes
features/Dynamic Cubemaps - Metals/textures/cubemaps/eyecubemap.dds
Binary file not shown.
Binary file modified
BIN
-384 KB
(0.039%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/quicksky_e.dds
Binary file not shown.
Binary file modified
BIN
-384 KB
(0.039%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/quickskydark_e.dds
Binary file not shown.
Binary file renamed
BIN
+152 Bytes
...s - Metals/textures/cubemaps/chrome_e.dds → ...etals/textures/cubemaps/shinybright_e.dds
Binary file not shown.
Binary file added
BIN
+152 Bytes
features/Dynamic Cubemaps - Metals/textures/cubemaps/shinycontrast_e.dds
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/shinyglass_e.dds
Binary file not shown.
Binary file removed
BIN
-152 Bytes
features/Dynamic Cubemaps - Metals/textures/cubemaps/shinyglass_e2.dds
Binary file not shown.
Binary file added
BIN
+152 Bytes
features/Dynamic Cubemaps - Metals/textures/cubemaps/simplegrey_e.dds
Binary file not shown.
Binary file modified
BIN
-6 MB
(0.0024%)
features/Dynamic Cubemaps - Metals/textures/cubemaps/testsky_e.dds
Binary file not shown.
Binary file not shown.
Oops, something went wrong.