Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct VOut
- {
- float4 position : SV_POSITION;
- float4 color : COLOR;
- };
- VOut VShader(float4 position : POSITION, float4 color : COLOR)
- {
- VOut output;
- position.x = position.x * 2;
- position.y = position.y * 0.5;
- position.z = position.z * 3.5;
- output.position = position;
- output.color = color;
- return output;
- }
- float4 PShader(float4 position : SV_POSITION, float4 color : COLOR) : SV_TARGET
- {
- float multiplier = 10;
- color.x = color.x * multiplier;
- color.y = color.y * multiplier;
- color.z = color.z * multiplier;
- return color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement