etqw-sdk/base/renderprogs/occlusion.rprog
2008-05-29 00:00:00 +00:00

33 lines
481 B
Text

renderProgram occlusion {
program vertex cg { <%
struct VsInputs {
float3 pos : $positionAttrib;
};
struct VsOutputs {
float4 color : COLOR0;
};
VsOutputs vertex(VsInputs indata) {
VsOutputs outdata;
outdata.color = 1.f;
return outdata;
}
%> }
program fragment cg { <%
struct VsOutputs {
float4 color : COLOR0;
};
float4 fragment(VsOutputs indata) : COLOR {
return indata.color;
}
%> }
}