aboutsummaryrefslogtreecommitdiff
path: root/samples/resources/shaders/debug_primitive.hlsl
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2018-05-31 11:36:08 -0700
committerBryan Galdrikian <[email protected]>2018-05-31 11:36:08 -0700
commit7115f60b91b5717d90f643fd692010905c7004db (patch)
treeeffd68c6978751c517d54c2f2bb5bb6e7dc93e18 /samples/resources/shaders/debug_primitive.hlsl
parentUpdating BlastTool zip (diff)
downloadblast-1.1.3_rc1.tar.xz
blast-1.1.3_rc1.zip
Blast 1.1.3. See docs/release_notes.txt.v1.1.3_rc1
Diffstat (limited to 'samples/resources/shaders/debug_primitive.hlsl')
-rwxr-xr-x[-rw-r--r--]samples/resources/shaders/debug_primitive.hlsl60
1 files changed, 30 insertions, 30 deletions
diff --git a/samples/resources/shaders/debug_primitive.hlsl b/samples/resources/shaders/debug_primitive.hlsl
index a24ebfb..be0d455 100644..100755
--- a/samples/resources/shaders/debug_primitive.hlsl
+++ b/samples/resources/shaders/debug_primitive.hlsl
@@ -1,31 +1,31 @@
-#include "common_buffers.hlsl"
-
-struct VS_INPUT
-{
- float3 position : POSITION0;
- float3 color : COLOR0;
-};
-
-struct VS_OUTPUT
-{
- float4 position : SV_POSITION;
- float3 color : COLOR0;
-};
-
-VS_OUTPUT VS(VS_INPUT iV)
-{
- VS_OUTPUT oV;
-
- float4 worldSpacePos = mul(float4(iV.position, 1.0f), model);
- float4 eyeSpacePos = mul(worldSpacePos, viewProjection);
- oV.position = mul(worldSpacePos, viewProjection);
-
- oV.color = iV.color;
-
- return oV;
-}
-
-float4 PS(VS_OUTPUT iV) : SV_Target0
-{
- return float4(iV.color, 1);
+#include "common_buffers.hlsl"
+
+struct VS_INPUT
+{
+ float3 position : POSITION0;
+ float3 color : COLOR0;
+};
+
+struct VS_OUTPUT
+{
+ float4 position : SV_POSITION;
+ float3 color : COLOR0;
+};
+
+VS_OUTPUT VS(VS_INPUT iV)
+{
+ VS_OUTPUT oV;
+
+ float4 worldSpacePos = mul(float4(iV.position, 1.0f), model);
+ float4 eyeSpacePos = mul(worldSpacePos, viewProjection);
+ oV.position = mul(worldSpacePos, viewProjection);
+
+ oV.color = iV.color;
+
+ return oV;
+}
+
+float4 PS(VS_OUTPUT iV) : SV_Target0
+{
+ return float4(iV.color, 1);
} \ No newline at end of file