-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into add-pda-keys
- Loading branch information
Showing
578 changed files
with
5,473 additions
and
669 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
Submodule sse2neon
updated
3 files
+7 −1 | .github/workflows/github_actions.yml | |
+18 −8 | Makefile | |
+24 −2 | README.md |
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
Binary file not shown.
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
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
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,7 @@ | ||
#include "common.h" | ||
|
||
float4 main ( float4 P: POSITION ) : SV_Position | ||
{ | ||
return mul ( m_WVP, P ); | ||
} | ||
FXVS; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
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,21 @@ | ||
#include "common.h" | ||
|
||
////////////////////////////////////////////////////////////////////////////////////////// | ||
uniform float4x4 m_texgen; | ||
#ifdef USE_SJITTER | ||
uniform float4x4 m_texgen_J; | ||
#endif | ||
|
||
////////////////////////////////////////////////////////////////////////////////////////// | ||
// Vertex | ||
v2p_volume main ( float4 P: POSITION ) | ||
{ | ||
v2p_volume O; | ||
O.hpos = mul( m_WVP, P ); | ||
O.tc = mul( m_texgen, P ); | ||
#ifdef USE_SJITTER | ||
O.tcJ = mul( m_texgen_J, P ); | ||
#endif | ||
return O; | ||
} | ||
FXVS; |
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,21 @@ | ||
#include "common.h" | ||
|
||
////////////////////////////////////////////////////////////////////////////////////////// | ||
uniform float4x4 m_texgen; | ||
#ifdef USE_SJITTER | ||
uniform float4x4 m_texgen_J; | ||
#endif | ||
|
||
////////////////////////////////////////////////////////////////////////////////////////// | ||
// Vertex | ||
v2p_volume main ( float4 P: POSITION ) | ||
{ | ||
v2p_volume O; | ||
O.hpos = mul( m_WVP, P ); | ||
O.tc = mul( m_texgen, P ); | ||
#ifdef USE_SJITTER | ||
O.tcJ = mul( m_texgen_J, P ); | ||
#endif | ||
return O; | ||
} | ||
FXVS; |
File renamed without changes.
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,21 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_volumetric", "accum_volumetric") | ||
: fog (false) | ||
: zb (true,false) | ||
: blend (true,blend.one,blend.one) | ||
-- : aref (true,0) | ||
: sorting (2, false) | ||
-- TODO: Implement sampler states | ||
-- shader:sampler ("s_lmap") :texture (t_base): clamp() | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_noise") :texture("fx\\fx_noise") : f_linear () | ||
|
||
shader:dx10texture ("s_lmap", t_base) | ||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_noise", "fx\\fx_noise") | ||
|
||
shader:dx10sampler ("smp_rtlinear") | ||
shader:dx10sampler ("smp_linear") | ||
-- shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
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,44 @@ | ||
#include "common.h" | ||
|
||
cbuffer VolumetricLights | ||
{ | ||
float3 vMinBounds; | ||
float3 vMaxBounds; | ||
float4 FrustumClipPlane[6]; | ||
} | ||
|
||
struct v2p | ||
{ | ||
float3 lightToPos : TEXCOORD0; // light center to plane vector | ||
float3 vPos : TEXCOORD1; // position in camera space | ||
float fDensity : TEXCOORD2; // plane density alon Z axis | ||
// float2 tNoise : TEXCOORD3; // projective noise | ||
float3 clip0 : SV_ClipDistance0; | ||
float3 clip1 : SV_ClipDistance1; | ||
float4 hpos : SV_Position; | ||
}; | ||
|
||
v2p main ( float3 P : POSITION ) | ||
{ | ||
v2p o; | ||
float4 vPos; | ||
vPos.xyz = lerp( vMinBounds, vMaxBounds, P); // Position in camera space | ||
vPos.w = 1; | ||
o.hpos = mul (m_P, vPos); // xform, input in camera coordinates | ||
|
||
o.lightToPos = vPos.xyz - Ldynamic_pos.xyz; | ||
o.vPos = vPos; | ||
|
||
// o.fDensity = (vMaxBounds.z-vMinBounds.z)/2000.0h; | ||
// o.fDensity = (vMaxBounds.z-vMinBounds.z)/2000.0h*2; | ||
o.fDensity = 1.0h/40.0h; | ||
// o.fDensity = 1.0h/20.0h; | ||
|
||
for (int i=0; i<3; ++i) | ||
{ | ||
o.clip0[i] = dot( o.hpos, FrustumClipPlane[i]); | ||
o.clip1[i] = dot( o.hpos, FrustumClipPlane[i+3]); | ||
} | ||
|
||
return o; | ||
} |
Binary file not shown.
Binary file not shown.
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,21 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_volumetric", "accum_volumetric") | ||
: fog (false) | ||
: zb (true,false) | ||
: blend (true,blend.one,blend.one) | ||
-- : aref (true,0) | ||
: sorting (2, false) | ||
-- TODO: Implement sampler states | ||
-- shader:sampler ("s_lmap") :texture (t_base): clamp() | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_noise") :texture("fx\\fx_noise") : f_linear () | ||
|
||
shader:dx10texture ("s_lmap", t_base) | ||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_noise", "fx\\fx_noise") | ||
|
||
shader:dx10sampler ("smp_rtlinear") | ||
shader:dx10sampler ("smp_linear") | ||
-- shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
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 @@ | ||
#include "accum_volumetric.vs" |
File renamed without changes.
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,21 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("stub_notransform_2uv", "accum_volumetric_sun_normal") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_smap_minmax", "$user$smap_depth_minmax"); | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
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,21 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_sun", "accum_volumetric_sun_minmax") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_smap_minmax", "$user$smap_depth_minmax"); | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
Binary file not shown.
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,20 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_sun", "accum_volumetric_sun_msaa0") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
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,20 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_sun", "accum_volumetric_sun_msaa1") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
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,20 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_sun", "accum_volumetric_sun_msaa2") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
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,20 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_sun", "accum_volumetric_sun_msaa3") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
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,20 @@ | ||
function normal (shader, t_base, t_second, t_detail) | ||
shader:begin ("accum_sun", "accum_volumetric_sun_msaa4") | ||
: fog (false) | ||
: zb (false,false) | ||
: blend (true,blend.one,blend.one) | ||
: sorting (2, false) | ||
-- TODO: DX10: Implement for near and far phase. | ||
-- TODO: DX10: Setup samplers. | ||
-- shader:sampler ("s_smap") :texture ("null") | ||
-- shader:sampler ("s_position") :texture ("$user$position") | ||
-- shader:sampler ("jitter0") :texture ("$user$jitter_0") : f_none () | ||
|
||
shader:dx10texture ("s_smap", "null") | ||
shader:dx10texture ("s_position", "$user$position") | ||
shader:dx10texture ("jitter0", "$user$jitter_0") | ||
|
||
shader:dx10sampler ("smp_nofilter") | ||
shader:dx10sampler ("smp_jitter") | ||
shader:dx10sampler ("smp_smap") | ||
end |
Binary file not shown.
Oops, something went wrong.