blob: 5c8eab12731e1114725bbb7553dfc1722200e2d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "shaderCommon.h"
#pragma warning (disable : 3578)
cbuffer constBuf : register(b0)
{
FluidShaderConst gParams;
};
FluidVertexOut pointThicknessVS(FluidVertexIn input, uint instance : SV_VertexID)
{
const float4 gl_Vertex = input.position;
const float4x4 gl_ModelViewMatrix = gParams.modelView;
// calculate window-space point size
float4 viewPos = mul(gl_ModelViewMatrix, float4(gl_Vertex.xyz, 1.0));
FluidVertexOut output;
output.position = viewPos;
output.bounds = gl_Vertex; // store gl_Vertex in bounds
return output;
}
|