-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
1,502 additions
and
2,216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
shader "/pipelines/world_grid.shd" | ||
shader "/pipelines/world_grid.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/world_grid.shd" | ||
shader "/pipelines/world_grid.hlsl" | ||
backface_culling false | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
backface_culling true | ||
layer "default" | ||
|
||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/standard.shd" | ||
shader "/pipelines/standard.hlsl" | ||
texture "" | ||
texture "" | ||
texture "" | ||
|
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,4 @@ | ||
shader "/pipelines/particles.shd" | ||
shader "/pipelines/particles.hlsl" | ||
backface_culling true | ||
layer "transparent" | ||
|
||
|
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,25 @@ | ||
//@include "pipelines/common.hlsli" | ||
|
||
cbuffer Drawcall : register(b4) { | ||
float4 u_r_mask; | ||
float4 u_g_mask; | ||
float4 u_b_mask; | ||
float4 u_a_mask; | ||
float4 u_offsets; | ||
uint2 u_position; | ||
int2 u_scale; | ||
uint u_input; | ||
uint u_output; | ||
}; | ||
|
||
[numthreads(16, 16, 1)] | ||
void main(uint3 thread_id : SV_DispatchThreadID) { | ||
float4 value = bindless_textures[u_input][thread_id.xy]; | ||
|
||
bindless_rw_textures[u_output][thread_id.xy * u_scale + u_position] = float4( | ||
dot(value, u_r_mask) + u_offsets.r, | ||
dot(value, u_g_mask) + u_offsets.g, | ||
dot(value, u_b_mask) + u_offsets.b, | ||
dot(value, u_a_mask) + u_offsets.a | ||
); | ||
} |
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
Oops, something went wrong.