| 12345678910111213141516171819202122 |
- #include "Uniforms.hlsl"
- #include "Transform.hlsl"
- #include "Samplers.hlsl"
- #include "ScreenPos.hlsl"
- #include "PostProcess.hlsl"
- void VS(float4 iPos : POSITION,
- out float4 oPos : POSITION,
- out float2 oScreenPos : TEXCOORD0)
- {
- float4x3 modelMatrix = iModelMatrix;
- float3 worldPos = GetWorldPos(modelMatrix);
- oPos = GetClipPos(worldPos);
- oScreenPos = GetScreenPosPreDiv(oPos);
- }
- void PS(float2 iScreenPos : TEXCOORD0,
- out float4 oColor : COLOR0)
- {
- float3 color = tex2D(sDiffMap, iScreenPos).rgb;
- oColor = float4(ToInverseGamma(color), 1.0);
- }
|