Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as XML by hoax ( 17 years ago )
<?xml version="1.0" encoding="utf-8"?>
<Material Name="Default">
  <Technique>
    <Pass>
      <VertexShader>
        <![CDATA[
        uniform float4x4 worldviewproj_matrix;

        struct VS_OUTPUT
        {
          float4 Position   : POSITION;
          float4 Diffuse    : COLOR0;
        };


        VS_OUTPUT main(float4 Position : POSITION, float4 Diffuse : COLOR0)
        {
          VS_OUTPUT OUT;

          OUT.Position = mul(worldviewproj_matrix, Position);
          OUT.Diffuse = Diffuse;

          return OUT;
        }
        ]]>
      </VertexShader>
      <PixelShader Source="DefaultVS.cg"/>
    </Pass>
  </Technique>
</Material>

 

Revise this Paste

Children: 4803
Your Name: Code Language: