Files
PhysX4.1/physx/samples/sampleframework/media/shaders/fragment/screenquad.cg
2025-11-28 23:13:44 +05:30

24 lines
468 B
Plaintext

struct FragmentParameters
{
float4 worldSpacePosition : TEXCOORD4;
float2 texcoord0 : TEXCOORD0;
half4 color : COLOR;
};
struct Fragment
{
half4 color : COLOR0;
};
//uniform const sampler2D diffuseTexture;
Fragment fmain(FragmentParameters params)
{
Fragment fout;
// half4 diffuseTextureColor = tex2D(diffuseTexture, params.texcoord0.xy);
// fout.color = diffuseTextureColor * params.color;
fout.color = params.color;
return fout;
}