Stencil.hlsl 316 B

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