All pastes #381996 Raw Edit

Cody Brocious

public c v1 · immutable
·published 2007-03-05 06:22 UTC
rendered paste body
//--------------------------------------------------------------------------------------// File: Tutorial02.fx//// Copyright (c) Microsoft Corporation. All rights reserved.//--------------------------------------------------------------------------------------//--------------------------------------------------------------------------------------// Vertex Shader//--------------------------------------------------------------------------------------float4 VS( float4 Pos : POSITION ) : SV_POSITION{    return Pos;}//--------------------------------------------------------------------------------------// Pixel Shader//--------------------------------------------------------------------------------------float4 PS( float4 Pos : SV_POSITION ) : SV_Target{    return float4( 1.0f, 1.0f, 0.0f, 1.0f );    // Yellow, with Alpha = 1}//--------------------------------------------------------------------------------------technique10 Render{    pass P0    {        SetVertexShader( CompileShader( vs_4_0, VS() ) );        SetGeometryShader( NULL );        SetPixelShader( CompileShader( ps_4_0, PS() ) );    }}