Init
This commit is contained in:
19
physx/samples/sampleframework/media/shaders/vertex/lines.cg
Normal file
19
physx/samples/sampleframework/media/shaders/vertex/lines.cg
Normal file
@ -0,0 +1,19 @@
|
||||
#include <config.cg>
|
||||
#include <globals.cg>
|
||||
|
||||
struct VertexOut
|
||||
{
|
||||
float4 screenSpacePosition : POSITION;
|
||||
half4 color : COLOR;
|
||||
};
|
||||
|
||||
VertexOut vmain(__in(float4, localSpacePosition, POSITION)
|
||||
__in_opt(half4, vertexColor, COLOR))
|
||||
{
|
||||
VertexOut vout;
|
||||
float4x4 vpm = mul(g_projMatrix, g_viewMatrix);
|
||||
vout.screenSpacePosition = mul(vpm, localSpacePosition);
|
||||
vout.color = vertexColor;
|
||||
|
||||
return vout;
|
||||
}
|
||||
Reference in New Issue
Block a user