ClearFramebuffer.hlsl 368 B

1234567891011121314151617
  1. #include "Uniforms.hlsl"
  2. #include "Samplers.hlsl"
  3. #include "Transform.hlsl"
  4. #include "ScreenPos.hlsl"
  5. void VS(float4 iPos : POSITION,
  6. out float4 oPos : OUTPOSITION)
  7. {
  8. float4x3 modelMatrix = iModelMatrix;
  9. float3 worldPos = GetWorldPos(modelMatrix);
  10. oPos = GetClipPos(worldPos);
  11. }
  12. void PS(out float4 oColor : OUTCOLOR0)
  13. {
  14. oColor = cMatDiffColor;
  15. }